[][src]Struct layered_io::LayeredWriter

pub struct LayeredWriter<Inner> { /* fields omitted */ }

Adapts a std::io::Write to implement WriteLayered.

Implementations

impl<Inner: Write> LayeredWriter<Inner>[src]

pub fn new(inner: Inner) -> Self[src]

Construct a new LayeredWriter which wraps inner.

pub fn get_ref(&self) -> &Inner[src]

Gets a reference to the underlying writer.

pub fn get_mut(&mut self) -> &mut Inner[src]

Gets a mutable reference to the underlying writer.

It is inadvisable to directly write to the underlying writer.

pub fn close_into_inner(mut self: Self) -> Result<Inner>[src]

Close this LayeredWriter and return the inner stream.

pub fn abandon_into_inner(self) -> Option<Inner>[src]

Consume this LayeredWriter and return the inner stream.

Trait Implementations

impl<Inner: Write + AsRawFd> AsRawFd for LayeredWriter<Inner>[src]

impl<Inner> Bufferable for LayeredWriter<Inner>[src]

impl<Inner: Debug> Debug for LayeredWriter<Inner>[src]

impl<Inner: Write> Write for LayeredWriter<Inner>[src]

impl<Inner: Write> WriteLayered for LayeredWriter<Inner>[src]

Auto Trait Implementations

impl<Inner> RefUnwindSafe for LayeredWriter<Inner> where
    Inner: RefUnwindSafe
[src]

impl<Inner> Send for LayeredWriter<Inner> where
    Inner: Send
[src]

impl<Inner> Sync for LayeredWriter<Inner> where
    Inner: Sync
[src]

impl<Inner> Unpin for LayeredWriter<Inner> where
    Inner: Unpin
[src]

impl<Inner> UnwindSafe for LayeredWriter<Inner> where
    Inner: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsUnsafeFile for T where
    T: AsRawFd
[src]

impl<T> AsUnsafeHandle for T where
    T: AsRawFd
[src]

impl<T> AsUnsafeSocket for T where
    T: AsRawFd
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.