Trait ux::prelude::OutputStreamExtManual[]

pub trait OutputStreamExtManual: OutputStreamExt {
    pub fn write_async<B, Q, C>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: Option<&C>,
        callback: Q
    )
    where
        C: IsA<Cancellable>,
        B: 'static + AsRef<[u8]> + Send,
        Q: 'static + FnOnce(Result<(B, usize), (B, Error)>) + Send
;
pub fn write_all<C>(
        &self,
        buffer: &[u8],
        cancellable: Option<&C>
    ) -> Result<(usize, Option<Error>), Error>
    where
        C: IsA<Cancellable>
;
pub fn write_all_async<B, Q, C>(
        &self,
        buffer: B,
        io_priority: Priority,
        cancellable: Option<&C>,
        callback: Q
    )
    where
        C: IsA<Cancellable>,
        B: 'static + AsRef<[u8]> + Send,
        Q: 'static + FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send
;
pub fn write_async_future<B>(
        &self,
        buffer: B,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>> + 'static, Global>>
    where
        B: 'static + AsRef<[u8]> + Send
;
pub fn write_all_async_future<B>(
        &self,
        buffer: B,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>> + 'static, Global>>
    where
        B: 'static + AsRef<[u8]> + Send
; pub fn into_write(self) -> OutputStreamWrite<Self>
    where
        Self: IsA<OutputStream>
, { ... } }

Required methods

pub fn write_async<B, Q, C>(
    &self,
    buffer: B,
    io_priority: Priority,
    cancellable: Option<&C>,
    callback: Q
) where
    C: IsA<Cancellable>,
    B: 'static + AsRef<[u8]> + Send,
    Q: 'static + FnOnce(Result<(B, usize), (B, Error)>) + Send

pub fn write_all<C>(
    &self,
    buffer: &[u8],
    cancellable: Option<&C>
) -> Result<(usize, Option<Error>), Error> where
    C: IsA<Cancellable>, 

pub fn write_all_async<B, Q, C>(
    &self,
    buffer: B,
    io_priority: Priority,
    cancellable: Option<&C>,
    callback: Q
) where
    C: IsA<Cancellable>,
    B: 'static + AsRef<[u8]> + Send,
    Q: 'static + FnOnce(Result<(B, usize, Option<Error>), (B, Error)>) + Send

pub fn write_async_future<B>(
    &self,
    buffer: B,
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>> + 'static, Global>> where
    B: 'static + AsRef<[u8]> + Send

pub fn write_all_async_future<B>(
    &self,
    buffer: B,
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>> + 'static, Global>> where
    B: 'static + AsRef<[u8]> + Send

Loading content...

Provided methods

pub fn into_write(self) -> OutputStreamWrite<Self> where
    Self: IsA<OutputStream>, 

Loading content...

Implementors

impl<O> OutputStreamExtManual for O where
    O: IsA<OutputStream>, 

Loading content...