Trait gain::stream::Write[][src]

pub trait Write {
    fn write<'a>(&'a mut self, data: &'a [u8]) -> Write<'_>
Notable traits for StreamWriteFuture<'_>
impl Future for StreamWriteFuture<'_> type Output = Result<usize>;
;
fn write_note<'a>(&'a mut self, data: &'a [u8], note: i32) -> Write<'_>
Notable traits for StreamWriteFuture<'_>
impl Future for StreamWriteFuture<'_> type Output = Result<usize>;
;
fn write_all<'a>(&'a mut self, data: &'a [u8]) -> WriteAll<'_>
Notable traits for StreamWriteAllFuture<'_>
impl Future for StreamWriteAllFuture<'_> type Output = Result<()>;
; }
Expand description

Data writer.

Required methods

Write part of a byte slice. Returns a future.

Write part of a byte slice. Returns a future.

Write a whole byte slice. Returns a future.

Implementors