pub struct IVssComponentEx2(/* private fields */);

Implementations§

§

impl IVssComponentEx2

pub unsafe fn GetLogicalPath(&self, pbstrpath: *mut BSTR) -> Result<()>

pub unsafe fn GetComponentType( &self, pct: *mut VSS_COMPONENT_TYPE ) -> Result<()>

pub unsafe fn GetComponentName(&self, pbstrname: *mut BSTR) -> Result<()>

pub unsafe fn GetBackupSucceeded(&self, pbsucceeded: *mut bool) -> Result<()>

pub unsafe fn GetAlternateLocationMappingCount( &self, pcmappings: *mut u32 ) -> Result<()>

pub unsafe fn GetAlternateLocationMapping( &self, imapping: u32 ) -> Result<IVssWMFiledesc>

pub unsafe fn SetBackupMetadata<P0>(&self, wszdata: P0) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetBackupMetadata(&self, pbstrdata: *mut BSTR) -> Result<()>

pub unsafe fn AddPartialFile<P0, P1, P2, P3>( &self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3 ) -> Result<()>
where P0: IntoParam<PCWSTR>, P1: IntoParam<PCWSTR>, P2: IntoParam<PCWSTR>, P3: IntoParam<PCWSTR>,

pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> Result<()>

pub unsafe fn GetPartialFile( &self, ipartialfile: u32, pbstrpath: *mut BSTR, pbstrfilename: *mut BSTR, pbstrrange: *mut BSTR, pbstrmetadata: *mut BSTR ) -> Result<()>

pub unsafe fn IsSelectedForRestore( &self, pbselectedforrestore: *mut bool ) -> Result<()>

pub unsafe fn GetAdditionalRestores( &self, pbadditionalrestores: *mut bool ) -> Result<()>

pub unsafe fn GetNewTargetCount(&self, pcnewtarget: *mut u32) -> Result<()>

pub unsafe fn GetNewTarget(&self, inewtarget: u32) -> Result<IVssWMFiledesc>

pub unsafe fn AddDirectedTarget<P0, P1, P2, P3, P4, P5>( &self, wszsourcepath: P0, wszsourcefilename: P1, wszsourcerangelist: P2, wszdestinationpath: P3, wszdestinationfilename: P4, wszdestinationrangelist: P5 ) -> Result<()>
where P0: IntoParam<PCWSTR>, P1: IntoParam<PCWSTR>, P2: IntoParam<PCWSTR>, P3: IntoParam<PCWSTR>, P4: IntoParam<PCWSTR>, P5: IntoParam<PCWSTR>,

pub unsafe fn GetDirectedTargetCount( &self, pcdirectedtarget: *mut u32 ) -> Result<()>

pub unsafe fn GetDirectedTarget( &self, idirectedtarget: u32, pbstrsourcepath: *mut BSTR, pbstrsourcefilename: *mut BSTR, pbstrsourcerangelist: *mut BSTR, pbstrdestinationpath: *mut BSTR, pbstrdestinationfilename: *mut BSTR, pbstrdestinationrangelist: *mut BSTR ) -> Result<()>

pub unsafe fn SetRestoreMetadata<P0>( &self, wszrestoremetadata: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetRestoreMetadata( &self, pbstrrestoremetadata: *mut BSTR ) -> Result<()>

pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> Result<()>

pub unsafe fn GetRestoreTarget( &self, ptarget: *mut VSS_RESTORE_TARGET ) -> Result<()>

pub unsafe fn SetPreRestoreFailureMsg<P0>( &self, wszprerestorefailuremsg: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetPreRestoreFailureMsg( &self, pbstrprerestorefailuremsg: *mut BSTR ) -> Result<()>

pub unsafe fn SetPostRestoreFailureMsg<P0>( &self, wszpostrestorefailuremsg: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetPostRestoreFailureMsg( &self, pbstrpostrestorefailuremsg: *mut BSTR ) -> Result<()>

pub unsafe fn SetBackupStamp<P0>(&self, wszbackupstamp: P0) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: *mut BSTR) -> Result<()>

pub unsafe fn GetPreviousBackupStamp( &self, pbstrbackupstamp: *mut BSTR ) -> Result<()>

pub unsafe fn GetBackupOptions( &self, pbstrbackupoptions: *mut BSTR ) -> Result<()>

pub unsafe fn GetRestoreOptions( &self, pbstrrestoreoptions: *mut BSTR ) -> Result<()>

pub unsafe fn GetRestoreSubcomponentCount( &self, pcrestoresubcomponent: *mut u32 ) -> Result<()>

pub unsafe fn GetRestoreSubcomponent( &self, icomponent: u32, pbstrlogicalpath: *mut BSTR, pbstrcomponentname: *mut BSTR, pbrepair: *mut bool ) -> Result<()>

pub unsafe fn GetFileRestoreStatus( &self, pstatus: *mut VSS_FILE_RESTORE_STATUS ) -> Result<()>

pub unsafe fn AddDifferencedFilesByLastModifyTime<P0, P1, P2>( &self, wszpath: P0, wszfilespec: P1, brecursive: P2, ftlastmodifytime: FILETIME ) -> Result<()>
where P0: IntoParam<PCWSTR>, P1: IntoParam<PCWSTR>, P2: IntoParam<BOOL>,

pub unsafe fn AddDifferencedFilesByLastModifyLSN<P0, P1, P2, P3>( &self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3 ) -> Result<()>
where P0: IntoParam<PCWSTR>, P1: IntoParam<PCWSTR>, P2: IntoParam<BOOL>, P3: IntoParam<BSTR>,

pub unsafe fn GetDifferencedFilesCount( &self, pcdifferencedfiles: *mut u32 ) -> Result<()>

pub unsafe fn GetDifferencedFile( &self, idifferencedfile: u32, pbstrpath: *mut BSTR, pbstrfilespec: *mut BSTR, pbrecursive: *mut BOOL, pbstrlsnstring: *mut BSTR, pftlastmodifytime: *mut FILETIME ) -> Result<()>

pub unsafe fn SetPrepareForBackupFailureMsg<P0>( &self, wszfailuremsg: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn SetPostSnapshotFailureMsg<P0>( &self, wszfailuremsg: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> Result<BSTR>

pub unsafe fn GetPostSnapshotFailureMsg(&self) -> Result<BSTR>

pub unsafe fn GetAuthoritativeRestore(&self) -> Result<bool>

pub unsafe fn GetRollForward( &self, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut BSTR ) -> Result<()>

pub unsafe fn GetRestoreName(&self) -> Result<BSTR>

pub unsafe fn SetFailure<P0>( &self, hr: HRESULT, hrapplication: HRESULT, wszapplicationmessage: P0, dwreserved: u32 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetFailure( &self, phr: *mut HRESULT, phrapplication: *mut HRESULT, pbstrapplicationmessage: *mut BSTR, pdwreserved: *mut u32 ) -> Result<()>

Trait Implementations§

§

impl Clone for IVssComponentEx2

§

fn clone(&self) -> IVssComponentEx2

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IVssComponentEx2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<&IVssComponentEx2> for &IUnknown

§

fn from(value: &IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl From<&IVssComponentEx2> for &IVssComponent

§

fn from(value: &IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl From<&IVssComponentEx2> for &IVssComponentEx

§

fn from(value: &IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl From<IVssComponentEx2> for IUnknown

§

fn from(value: IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl From<IVssComponentEx2> for IVssComponent

§

fn from(value: IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl From<IVssComponentEx2> for IVssComponentEx

§

fn from(value: IVssComponentEx2) -> Self

Converts to this type from the input type.
§

impl Interface for IVssComponentEx2

§

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

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for IVssComponentEx2

§

fn eq(&self, other: &IVssComponentEx2) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IVssComponentEx2

§

impl StructuralPartialEq for IVssComponentEx2

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.