Struct IFileOperation
pub struct IFileOperation(/* private fields */);
Implementations§
§impl IFileOperation
impl IFileOperation
pub unsafe fn Advise<P0>(&self, pfops: P0) -> Result<u32>where
P0: Param<IFileOperationProgressSink>,
pub unsafe fn Unadvise(&self, dwcookie: u32) -> Result<()>
pub unsafe fn SetOperationFlags( &self, dwoperationflags: FILEOPERATION_FLAGS, ) -> Result<()>
pub unsafe fn SetProgressMessage<P0>(&self, pszmessage: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetProgressDialog<P0>(&self, popd: P0) -> Result<()>where
P0: Param<IOperationsProgressDialog>,
pub unsafe fn SetProperties<P0>(&self, pproparray: P0) -> Result<()>where
P0: Param<IPropertyChangeArray>,
pub unsafe fn SetOwnerWindow(&self, hwndowner: HWND) -> Result<()>
pub unsafe fn ApplyPropertiesToItem<P0>(&self, psiitem: P0) -> Result<()>where
P0: Param<IShellItem>,
pub unsafe fn ApplyPropertiesToItems<P0>(&self, punkitems: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn RenameItem<P0, P1, P2>(
&self,
psiitem: P0,
psznewname: P1,
pfopsitem: P2,
) -> Result<()>where
P0: Param<IShellItem>,
P1: Param<PCWSTR>,
P2: Param<IFileOperationProgressSink>,
pub unsafe fn RenameItems<P0, P1>(
&self,
punkitems: P0,
psznewname: P1,
) -> Result<()>where
P0: Param<IUnknown>,
P1: Param<PCWSTR>,
pub unsafe fn MoveItem<P0, P1, P2, P3>(
&self,
psiitem: P0,
psidestinationfolder: P1,
psznewname: P2,
pfopsitem: P3,
) -> Result<()>where
P0: Param<IShellItem>,
P1: Param<IShellItem>,
P2: Param<PCWSTR>,
P3: Param<IFileOperationProgressSink>,
pub unsafe fn MoveItems<P0, P1>(
&self,
punkitems: P0,
psidestinationfolder: P1,
) -> Result<()>where
P0: Param<IUnknown>,
P1: Param<IShellItem>,
pub unsafe fn CopyItem<P0, P1, P2, P3>(
&self,
psiitem: P0,
psidestinationfolder: P1,
pszcopyname: P2,
pfopsitem: P3,
) -> Result<()>where
P0: Param<IShellItem>,
P1: Param<IShellItem>,
P2: Param<PCWSTR>,
P3: Param<IFileOperationProgressSink>,
pub unsafe fn CopyItems<P0, P1>(
&self,
punkitems: P0,
psidestinationfolder: P1,
) -> Result<()>where
P0: Param<IUnknown>,
P1: Param<IShellItem>,
pub unsafe fn DeleteItem<P0, P1>(
&self,
psiitem: P0,
pfopsitem: P1,
) -> Result<()>where
P0: Param<IShellItem>,
P1: Param<IFileOperationProgressSink>,
pub unsafe fn DeleteItems<P0>(&self, punkitems: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn NewItem<P0, P2, P3, P4>(
&self,
psidestinationfolder: P0,
dwfileattributes: u32,
pszname: P2,
psztemplatename: P3,
pfopsitem: P4,
) -> Result<()>where
P0: Param<IShellItem>,
P2: Param<PCWSTR>,
P3: Param<PCWSTR>,
P4: Param<IFileOperationProgressSink>,
pub unsafe fn PerformOperations(&self) -> Result<()>
pub unsafe fn GetAnyOperationsAborted(&self) -> Result<BOOL>
Trait Implementations§
§impl CanInto<IFileOperation> for IFileOperation2
impl CanInto<IFileOperation> for IFileOperation2
§impl CanInto<IUnknown> for IFileOperation
impl CanInto<IUnknown> for IFileOperation
§impl Clone for IFileOperation
impl Clone for IFileOperation
§fn clone(&self) -> IFileOperation
fn clone(&self) -> IFileOperation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IFileOperation
impl Debug for IFileOperation
§impl From<&IFileOperation> for &IUnknown
impl From<&IFileOperation> for &IUnknown
§fn from(value: &IFileOperation) -> Self
fn from(value: &IFileOperation) -> Self
Converts to this type from the input type.
§impl From<&IFileOperation2> for &IFileOperation
impl From<&IFileOperation2> for &IFileOperation
§fn from(value: &IFileOperation2) -> Self
fn from(value: &IFileOperation2) -> Self
Converts to this type from the input type.
§impl From<IFileOperation> for IUnknown
impl From<IFileOperation> for IUnknown
§fn from(value: IFileOperation) -> Self
fn from(value: IFileOperation) -> Self
Converts to this type from the input type.
§impl From<IFileOperation2> for IFileOperation
impl From<IFileOperation2> for IFileOperation
§fn from(value: IFileOperation2) -> Self
fn from(value: IFileOperation2) -> Self
Converts to this type from the input type.
§impl Interface for IFileOperation
impl Interface for IFileOperation
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IFileOperation
impl PartialEq for IFileOperation
impl Eq for IFileOperation
impl StructuralPartialEq for IFileOperation
Auto Trait Implementations§
impl Freeze for IFileOperation
impl RefUnwindSafe for IFileOperation
impl !Send for IFileOperation
impl !Sync for IFileOperation
impl Unpin for IFileOperation
impl UnwindSafe for IFileOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more