Struct windows::Storage::Compression::Compressor
pub struct Compressor(/* private fields */);
Implementations§
§impl Compressor
impl Compressor
pub fn Close(&self) -> Result<()>
pub fn FinishAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn DetachStream(&self) -> Result<IOutputStream>
pub fn CreateCompressor<P0>(underlyingstream: P0) -> Result<Compressor>where
P0: IntoParam<IOutputStream>,
pub fn CreateCompressorEx<P0>(
underlyingstream: P0,
algorithm: CompressAlgorithm,
blocksize: u32
) -> Result<Compressor>where
P0: IntoParam<IOutputStream>,
pub fn WriteAsync<P0>(
&self,
buffer: P0
) -> Result<IAsyncOperationWithProgress<u32, u32>>where
P0: IntoParam<IBuffer>,
pub fn FlushAsync(&self) -> Result<IAsyncOperation<bool>>
Trait Implementations§
§impl Clone for Compressor
impl Clone for Compressor
§fn clone(&self) -> Compressor
fn clone(&self) -> Compressor
Returns a copy 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 more§impl Debug for Compressor
impl Debug for Compressor
§impl From<&Compressor> for &IInspectable
impl From<&Compressor> for &IInspectable
§fn from(value: &Compressor) -> Self
fn from(value: &Compressor) -> Self
Converts to this type from the input type.
§impl From<&Compressor> for &IUnknown
impl From<&Compressor> for &IUnknown
§fn from(value: &Compressor) -> Self
fn from(value: &Compressor) -> Self
Converts to this type from the input type.
§impl From<Compressor> for IInspectable
impl From<Compressor> for IInspectable
§fn from(value: Compressor) -> Self
fn from(value: Compressor) -> Self
Converts to this type from the input type.
§impl From<Compressor> for IUnknown
impl From<Compressor> for IUnknown
§fn from(value: Compressor) -> Self
fn from(value: Compressor) -> Self
Converts to this type from the input type.
§impl Interface for Compressor
impl Interface for Compressor
§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§impl PartialEq for Compressor
impl PartialEq for Compressor
§fn eq(&self, other: &Compressor) -> bool
fn eq(&self, other: &Compressor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Compressor
impl Send for Compressor
impl StructuralPartialEq for Compressor
impl Sync for Compressor
Auto Trait Implementations§
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