Struct IFileOperation2
pub struct IFileOperation2(/* private fields */);Implementations§
§impl IFileOperation2
 
impl IFileOperation2
pub unsafe fn SetOperationFlags2( &self, operationflags2: FILE_OPERATION_FLAGS2, ) -> Result<()>
Methods from Deref<Target = 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 IFileOperation2
 
impl CanInto<IUnknown> for IFileOperation2
§impl Clone for IFileOperation2
 
impl Clone for IFileOperation2
§fn clone(&self) -> IFileOperation2
 
fn clone(&self) -> IFileOperation2
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 IFileOperation2
 
impl Debug for IFileOperation2
§impl Deref for IFileOperation2
 
impl Deref for IFileOperation2
§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<&IFileOperation2> for &IUnknown
 
impl From<&IFileOperation2> for &IUnknown
§fn from(value: &IFileOperation2) -> Self
 
fn from(value: &IFileOperation2) -> 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<IFileOperation2> for IUnknown
 
impl From<IFileOperation2> for IUnknown
§fn from(value: IFileOperation2) -> Self
 
fn from(value: IFileOperation2) -> Self
Converts to this type from the input type.
§impl Interface for IFileOperation2
 
impl Interface for IFileOperation2
§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 IFileOperation2
 
impl PartialEq for IFileOperation2
impl Eq for IFileOperation2
impl StructuralPartialEq for IFileOperation2
Auto Trait Implementations§
impl Freeze for IFileOperation2
impl RefUnwindSafe for IFileOperation2
impl !Send for IFileOperation2
impl !Sync for IFileOperation2
impl Unpin for IFileOperation2
impl UnwindSafe for IFileOperation2
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