[−][src]Struct ssb_boxstream::BoxWriter
Implementations
impl<W, B> BoxWriter<W, B>
[src]
pub fn with_buffer(
inner: W,
key: Key,
nonce: Nonce,
buffer: B
) -> BoxWriter<W, B>
[src]
inner: W,
key: Key,
nonce: Nonce,
buffer: B
) -> BoxWriter<W, B>
pub fn is_closed(&self) -> bool
[src]
pub fn into_inner(self) -> W
[src]
impl<W> BoxWriter<W, Vec<u8>>
[src]
Trait Implementations
impl<W, B> AsyncWrite for BoxWriter<W, B> where
W: AsyncWrite + Unpin + 'static,
B: AsMut<[u8]> + Unpin,
[src]
W: AsyncWrite + Unpin + 'static,
B: AsMut<[u8]> + Unpin,
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
to_write: &[u8]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
to_write: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>
Auto Trait Implementations
impl<W, B> RefUnwindSafe for BoxWriter<W, B> where
B: RefUnwindSafe,
W: RefUnwindSafe,
B: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, B> Send for BoxWriter<W, B> where
B: Send,
W: Send,
B: Send,
W: Send,
impl<W, B> Sync for BoxWriter<W, B> where
B: Sync,
W: Sync,
B: Sync,
W: Sync,
impl<W, B> Unpin for BoxWriter<W, B> where
B: Unpin,
W: Unpin,
B: Unpin,
W: Unpin,
impl<W, B> UnwindSafe for BoxWriter<W, B> where
B: UnwindSafe,
W: UnwindSafe,
B: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,