pub struct DataWriter(/* private fields */);
Implementations§
Source§impl DataWriter
impl DataWriter
pub fn new() -> Result<Self>
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>
pub fn Close(&self) -> Result<()>
pub fn CreateDataWriter<'a, T0__: IntoParam<'a, IOutputStream>>( outputstream: T0__, ) -> Result<DataWriter>
Trait Implementations§
Source§impl Clone for DataWriter
impl Clone for DataWriter
Source§fn clone(&self) -> DataWriter
fn clone(&self) -> DataWriter
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 DataWriter
impl Debug for DataWriter
Source§impl From<&DataWriter> for IClosable
impl From<&DataWriter> for IClosable
Source§fn from(value: &DataWriter) -> Self
fn from(value: &DataWriter) -> 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<&DataWriter> for Object
impl From<&DataWriter> for Object
Source§fn from(value: &DataWriter) -> Self
fn from(value: &DataWriter) -> Self
Converts to this type from the input type.
Source§impl From<DataWriter> for IClosable
impl From<DataWriter> for IClosable
Source§fn from(value: DataWriter) -> Self
fn from(value: DataWriter) -> 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<DataWriter> for Object
impl From<DataWriter> for Object
Source§fn from(value: DataWriter) -> Self
fn from(value: DataWriter) -> Self
Converts to this type from the input type.
Source§impl Interface for DataWriter
impl Interface for DataWriter
const IID: Guid
type Vtable = IDataWriter_abi
Source§impl<'a> IntoParam<'a, IClosable> for &'a DataWriter
impl<'a> IntoParam<'a, IClosable> for &'a DataWriter
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IClosable> for DataWriter
impl<'a> IntoParam<'a, IClosable> for DataWriter
fn into_param(self) -> Param<'a, IClosable>
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 DataWriter
impl<'a> IntoParam<'a, Object> for &'a DataWriter
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for DataWriter
impl<'a> IntoParam<'a, Object> for DataWriter
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for DataWriter
impl PartialEq for DataWriter
Source§impl RuntimeName for DataWriter
impl RuntimeName for DataWriter
Source§impl RuntimeType for DataWriter
impl RuntimeType for DataWriter
const SIGNATURE: ConstBuffer
type DefaultType = Option<DataWriter>
impl Eq for DataWriter
impl Send for DataWriter
impl StructuralPartialEq for DataWriter
impl Sync for DataWriter
Auto Trait Implementations§
impl Freeze for DataWriter
impl RefUnwindSafe for DataWriter
impl Unpin for DataWriter
impl UnwindSafe for DataWriter
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