[][src]Struct amq_protocol::frame::WriteContext

pub struct WriteContext<W> {
    pub write: W,
    pub position: u64,
}

Context around a Write impl that is passed through serializing functions

Currently this only keeps track of the current write position since the start of serialization.

Fields

write: Wposition: u64

Implementations

impl<W> WriteContext<W> where
    W: Write
[src]

pub fn into_inner(self) -> (W, u64)[src]

Returns the contained Write and the current position

Trait Implementations

impl<W> From<W> for WriteContext<W> where
    W: Write
[src]

impl<W> Seek for WriteContext<W> where
    W: Seek
[src]

impl<W> Write for WriteContext<W> where
    W: Write
[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for WriteContext<W> where
    W: RefUnwindSafe

impl<W> Send for WriteContext<W> where
    W: Send

impl<W> Sync for WriteContext<W> where
    W: Sync

impl<W> Unpin for WriteContext<W> where
    W: Unpin

impl<W> UnwindSafe for WriteContext<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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.