pub struct IMimeBody(/* private fields */);Implementations§
Source§impl IMimeBody
impl IMimeBody
pub unsafe fn IsType(&self, bodytype: IMSGBODYTYPE) -> Result<(), Error>
pub unsafe fn SetDisplayName<P0>(&self, pszdisplay: P0) -> Result<(), Error>
pub unsafe fn GetDisplayName(&self, ppszdisplay: *mut PSTR) -> Result<(), Error>
pub unsafe fn GetOffsets(&self, poffsets: *mut BODYOFFSETS) -> Result<(), Error>
pub unsafe fn GetCurrentEncoding( &self, pietencoding: *mut ENCODINGTYPE, ) -> Result<(), Error>
pub unsafe fn SetCurrentEncoding( &self, ietencoding: ENCODINGTYPE, ) -> Result<(), Error>
pub unsafe fn GetEstimatedSize( &self, ietencoding: ENCODINGTYPE, pcbsize: *mut u32, ) -> Result<(), Error>
pub unsafe fn GetDataHere<P1>(
&self,
ietencoding: ENCODINGTYPE,
pstream: P1,
) -> Result<(), Error>where
P1: Param<IStream>,
pub unsafe fn GetData( &self, ietencoding: ENCODINGTYPE, ) -> Result<IStream, Error>
pub unsafe fn SetData<P1, P2>( &self, ietencoding: ENCODINGTYPE, pszpritype: P1, pszsubtype: P2, riid: *const GUID, pvobject: *mut c_void, ) -> Result<(), Error>
pub unsafe fn EmptyData(&self) -> Result<(), Error>
pub unsafe fn CopyTo<P0>(&self, pbody: P0) -> Result<(), Error>
pub unsafe fn GetTransmitInfo( &self, ptransmitinfo: *mut TRANSMITINFO, ) -> Result<(), Error>
pub unsafe fn SaveToFile<P1>( &self, ietencoding: ENCODINGTYPE, pszfilepath: P1, ) -> Result<(), Error>
pub unsafe fn GetHandle(&self, phbody: *mut *mut HBODY__) -> Result<(), Error>
Methods from Deref<Target = IMimePropertySet>§
pub unsafe fn Save<P0>(&self, pstm: P0, fcleardirty: bool) -> Result<(), Error>where
P0: Param<IStream>,
pub unsafe fn GetSizeMax(&self) -> Result<u64, Error>
pub unsafe fn InitNew(&self) -> Result<(), Error>
pub unsafe fn GetPropInfo<P0>( &self, pszname: P0, pinfo: *mut MIMEPROPINFO, ) -> Result<(), Error>
pub unsafe fn SetPropInfo<P0>( &self, pszname: P0, pinfo: *mut MIMEPROPINFO, ) -> Result<(), Error>
pub unsafe fn GetPropA<P0>( &self, pszname: P0, dwflags: u32, pvalue: *mut PROPVARIANT, ) -> Result<(), Error>
pub unsafe fn SetPropA<P0>( &self, pszname: P0, dwflags: u32, pvalue: *mut PROPVARIANT, ) -> Result<(), Error>
pub unsafe fn AppendProp<P0>( &self, pszname: P0, dwflags: u32, pvalue: *mut PROPVARIANT, ) -> Result<(), Error>
pub unsafe fn DeleteProp<P0>(&self, pszname: P0) -> Result<(), Error>
pub unsafe fn CopyProps<P2>(
&self,
cnames: u32,
prgszname: *const PCSTR,
ppropertyset: P2,
) -> Result<(), Error>where
P2: Param<IMimePropertySet>,
pub unsafe fn MoveProps<P2>(
&self,
cnames: u32,
prgszname: *const PCSTR,
ppropertyset: P2,
) -> Result<(), Error>where
P2: Param<IMimePropertySet>,
pub unsafe fn DeleteExcept( &self, cnames: u32, prgszname: *const PCSTR, ) -> Result<(), Error>
pub unsafe fn QueryProp<P0, P1>( &self, pszname: P0, pszcriteria: P1, fsubstring: u8, fcasesensitive: u8, ) -> Result<(), Error>
pub unsafe fn GetCharset( &self, phcharset: *mut *mut HCHARSET__, ) -> Result<(), Error>
pub unsafe fn SetCharset( &self, hcharset: *mut HCHARSET__, applytype: CSETAPPLYTYPE, ) -> Result<(), Error>
pub unsafe fn GetParameters<P0>( &self, pszname: P0, pcparams: *mut u32, pprgparam: *mut *mut MIMEPARAMINFO, ) -> Result<(), Error>
pub unsafe fn IsContentType<P0, P1>( &self, pszpritype: P0, pszsubtype: P1, ) -> Result<(), Error>
pub unsafe fn BindToObject( &self, riid: *const GUID, ppvobject: *mut *mut c_void, ) -> Result<(), Error>
pub unsafe fn Clone(&self) -> Result<IMimePropertySet, Error>
pub unsafe fn SetOption( &self, oid: u32, pvalue: *mut PROPVARIANT, ) -> Result<(), Error>
pub unsafe fn GetOption( &self, oid: u32, pvalue: *mut PROPVARIANT, ) -> Result<(), Error>
pub unsafe fn EnumPropsA( &self, dwflags: u32, ) -> Result<IMimeEnumProperties, Error>
Trait Implementations§
impl Eq for IMimeBody
Source§impl From<&IMimeBody> for &IMimePropertySet
impl From<&IMimeBody> for &IMimePropertySet
Source§fn from(value: &IMimeBody) -> &IMimePropertySet
fn from(value: &IMimeBody) -> &IMimePropertySet
Converts to this type from the input type.
Source§impl From<IMimeBody> for IMimePropertySet
impl From<IMimeBody> for IMimePropertySet
Source§fn from(value: IMimeBody) -> IMimePropertySet
fn from(value: IMimeBody) -> IMimePropertySet
Converts to this type from the input type.
Source§impl Interface for IMimeBody
impl Interface for IMimeBody
Source§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.Source§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.
Source§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 moreSource§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
This casts the given COM interface to [
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
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 moreSource§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
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 moreSource§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a
Weak reference to this object.Source§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
Call
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
Creates an
InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).impl StructuralPartialEq for IMimeBody
Auto Trait Implementations§
impl !Send for IMimeBody
impl !Sync for IMimeBody
impl Freeze for IMimeBody
impl RefUnwindSafe for IMimeBody
impl Unpin for IMimeBody
impl UnsafeUnpin for IMimeBody
impl UnwindSafe for IMimeBody
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