pub struct IStorage(/* private fields */);
Implementations§
§impl IStorage
impl IStorage
pub unsafe fn CreateStream<P0>(
&self,
pwcsname: P0,
grfmode: STGM,
reserved1: u32,
reserved2: u32,
) -> Result<IStream>where
P0: Param<PCWSTR>,
pub unsafe fn OpenStream<P0>(
&self,
pwcsname: P0,
reserved1: Option<*const c_void>,
grfmode: STGM,
reserved2: u32,
) -> Result<IStream>where
P0: Param<PCWSTR>,
pub unsafe fn CreateStorage<P0>(
&self,
pwcsname: P0,
grfmode: STGM,
reserved1: u32,
reserved2: u32,
) -> Result<IStorage>where
P0: Param<PCWSTR>,
pub unsafe fn OpenStorage<P0, P1>(
&self,
pwcsname: P0,
pstgpriority: P1,
grfmode: STGM,
snbexclude: *const *const u16,
reserved: u32,
) -> Result<IStorage>where
P0: Param<PCWSTR>,
P1: Param<IStorage>,
pub unsafe fn CopyTo<P0>(
&self,
rgiidexclude: Option<&[GUID]>,
snbexclude: Option<*const *const u16>,
pstgdest: P0,
) -> Result<()>where
P0: Param<IStorage>,
pub unsafe fn MoveElementTo<P0, P1, P2>(
&self,
pwcsname: P0,
pstgdest: P1,
pwcsnewname: P2,
grfflags: STGMOVE,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<IStorage>,
P2: Param<PCWSTR>,
pub unsafe fn Commit(&self, grfcommitflags: u32) -> Result<()>
pub unsafe fn Revert(&self) -> Result<()>
pub unsafe fn EnumElements( &self, reserved1: u32, reserved2: Option<*const c_void>, reserved3: u32, ) -> Result<IEnumSTATSTG>
pub unsafe fn DestroyElement<P0>(&self, pwcsname: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn RenameElement<P0, P1>(
&self,
pwcsoldname: P0,
pwcsnewname: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn SetElementTimes<P0>(
&self,
pwcsname: P0,
pctime: *const FILETIME,
patime: *const FILETIME,
pmtime: *const FILETIME,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetClass(&self, clsid: *const GUID) -> Result<()>
pub unsafe fn SetStateBits(&self, grfstatebits: u32, grfmask: u32) -> Result<()>
pub unsafe fn Stat( &self, pstatstg: *mut STATSTG, grfstatflag: u32, ) -> Result<()>
Trait Implementations§
§impl Interface for IStorage
impl Interface for IStorage
§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.
§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 Eq for IStorage
impl StructuralPartialEq for IStorage
Auto Trait Implementations§
impl Freeze for IStorage
impl RefUnwindSafe for IStorage
impl !Send for IStorage
impl !Sync for IStorage
impl Unpin for IStorage
impl UnwindSafe for IStorage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)