windows::Web::Http

Trait IHttpContent_Impl

pub trait IHttpContent_Impl: IClosable_Impl {
    // Required methods
    fn Headers(&self) -> Result<HttpContentHeaderCollection>;
    fn BufferAllAsync(&self) -> Result<IAsyncOperationWithProgress<u64, u64>>;
    fn ReadAsBufferAsync(
        &self,
    ) -> Result<IAsyncOperationWithProgress<IBuffer, u64>>;
    fn ReadAsInputStreamAsync(
        &self,
    ) -> Result<IAsyncOperationWithProgress<IInputStream, u64>>;
    fn ReadAsStringAsync(
        &self,
    ) -> Result<IAsyncOperationWithProgress<HSTRING, u64>>;
    fn TryComputeLength(&self, length: &mut u64) -> Result<bool>;
    fn WriteToStreamAsync(
        &self,
        outputStream: Ref<'_, IOutputStream>,
    ) -> Result<IAsyncOperationWithProgress<u64, u64>>;
}

Required Methods§

fn Headers(&self) -> Result<HttpContentHeaderCollection>

fn BufferAllAsync(&self) -> Result<IAsyncOperationWithProgress<u64, u64>>

fn ReadAsBufferAsync(&self) -> Result<IAsyncOperationWithProgress<IBuffer, u64>>

fn ReadAsInputStreamAsync( &self, ) -> Result<IAsyncOperationWithProgress<IInputStream, u64>>

fn ReadAsStringAsync(&self) -> Result<IAsyncOperationWithProgress<HSTRING, u64>>

fn TryComputeLength(&self, length: &mut u64) -> Result<bool>

fn WriteToStreamAsync( &self, outputStream: Ref<'_, IOutputStream>, ) -> Result<IAsyncOperationWithProgress<u64, u64>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§