pub struct IDataWriter(/* private fields */);
Implementations§
Source§impl IDataWriter
impl IDataWriter
pub fn UnstoredBufferLength(&self) -> Result<u32>
pub fn UnicodeEncoding(&self) -> Result<UnicodeEncoding>
pub fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> Result<()>
pub fn ByteOrder(&self) -> Result<ByteOrder>
pub fn SetByteOrder(&self, value: ByteOrder) -> Result<()>
pub fn WriteByte(&self, value: u8) -> Result<()>
pub fn WriteBytes( &self, value: &[<u8 as RuntimeType>::DefaultType], ) -> Result<()>
pub fn WriteBuffer<'a, T0__: IntoParam<'a, IBuffer>>( &self, buffer: T0__, ) -> Result<()>
pub fn WriteBufferRange<'a, T0__: IntoParam<'a, IBuffer>>( &self, buffer: T0__, start: u32, count: u32, ) -> Result<()>
pub fn WriteBoolean(&self, value: bool) -> Result<()>
pub fn WriteGuid<'a, T0__: IntoParam<'a, Guid>>( &self, value: T0__, ) -> Result<()>
pub fn WriteInt16(&self, value: i16) -> Result<()>
pub fn WriteInt32(&self, value: i32) -> Result<()>
pub fn WriteInt64(&self, value: i64) -> Result<()>
pub fn WriteUInt16(&self, value: u16) -> Result<()>
pub fn WriteUInt32(&self, value: u32) -> Result<()>
pub fn WriteUInt64(&self, value: u64) -> Result<()>
pub fn WriteSingle(&self, value: f32) -> Result<()>
pub fn WriteDouble(&self, value: f64) -> Result<()>
pub fn WriteDateTime<'a, T0__: IntoParam<'a, DateTime>>( &self, value: T0__, ) -> Result<()>
pub fn WriteTimeSpan<'a, T0__: IntoParam<'a, TimeSpan>>( &self, value: T0__, ) -> Result<()>
pub fn WriteString<'a, T0__: IntoParam<'a, HString>>( &self, value: T0__, ) -> Result<u32>
pub fn MeasureString<'a, T0__: IntoParam<'a, HString>>( &self, value: T0__, ) -> Result<u32>
pub fn StoreAsync(&self) -> Result<DataWriterStoreOperation>
pub fn FlushAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn DetachBuffer(&self) -> Result<IBuffer>
pub fn DetachStream(&self) -> Result<IOutputStream>
Trait Implementations§
Source§impl Clone for IDataWriter
impl Clone for IDataWriter
Source§fn clone(&self) -> IDataWriter
fn clone(&self) -> IDataWriter
Returns a duplicate 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 moreSource§impl Debug for IDataWriter
impl Debug for IDataWriter
Source§impl From<&DataWriter> for IDataWriter
impl From<&DataWriter> for IDataWriter
Source§fn from(value: &DataWriter) -> Self
fn from(value: &DataWriter) -> Self
Converts to this type from the input type.
Source§impl From<&IDataWriter> for Object
impl From<&IDataWriter> for Object
Source§fn from(value: &IDataWriter) -> Self
fn from(value: &IDataWriter) -> Self
Converts to this type from the input type.
Source§impl From<DataWriter> for IDataWriter
impl From<DataWriter> for IDataWriter
Source§fn from(value: DataWriter) -> Self
fn from(value: DataWriter) -> Self
Converts to this type from the input type.
Source§impl From<IDataWriter> for Object
impl From<IDataWriter> for Object
Source§fn from(value: IDataWriter) -> Self
fn from(value: IDataWriter) -> Self
Converts to this type from the input type.
Source§impl Interface for IDataWriter
impl Interface for IDataWriter
const IID: Guid
type Vtable = IDataWriter_abi
Source§impl<'a> IntoParam<'a, IDataWriter> for &'a DataWriter
impl<'a> IntoParam<'a, IDataWriter> for &'a DataWriter
fn into_param(self) -> Param<'a, IDataWriter>
Source§impl<'a> IntoParam<'a, IDataWriter> for DataWriter
impl<'a> IntoParam<'a, IDataWriter> for DataWriter
fn into_param(self) -> Param<'a, IDataWriter>
Source§impl<'a> IntoParam<'a, Object> for &'a IDataWriter
impl<'a> IntoParam<'a, Object> for &'a IDataWriter
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for IDataWriter
impl<'a> IntoParam<'a, Object> for IDataWriter
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for IDataWriter
impl PartialEq for IDataWriter
Source§impl RuntimeType for IDataWriter
impl RuntimeType for IDataWriter
const SIGNATURE: ConstBuffer
type DefaultType = Option<IDataWriter>
impl Eq for IDataWriter
impl StructuralPartialEq for IDataWriter
Auto Trait Implementations§
impl Freeze for IDataWriter
impl RefUnwindSafe for IDataWriter
impl !Send for IDataWriter
impl !Sync for IDataWriter
impl Unpin for IDataWriter
impl UnwindSafe for IDataWriter
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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