[][src]Trait amq_protocol_types::generation::BackToTheBuffer

pub trait BackToTheBuffer: Write {
    fn reserve_write_use<Tmp, Gen, Before>(
        s: WriteContext<Self>,
        reserved: usize,
        gen: &Gen,
        before: &Before
    ) -> Result<WriteContext<Self>, GenError>
    where
        Before: Fn(WriteContext<Self>, Tmp) -> Result<WriteContext<Self>, GenError>,
        Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>
; }

Serialization types and traits Trait for Write types that allow skipping and reserving a slice, then writing some data, then write something in the slice we reserved using the return for our data write.

Required methods

fn reserve_write_use<Tmp, Gen, Before>(
    s: WriteContext<Self>,
    reserved: usize,
    gen: &Gen,
    before: &Before
) -> Result<WriteContext<Self>, GenError> where
    Before: Fn(WriteContext<Self>, Tmp) -> Result<WriteContext<Self>, GenError>,
    Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>, 

Loading content...

Implementations on Foreign Types

impl<'_> BackToTheBuffer for &'_ mut [u8][src]

impl BackToTheBuffer for Vec<u8>[src]

Loading content...

Implementors

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

Loading content...