Struct parity_wasm::elements::CountedWriter [] [src]

pub struct CountedWriter<'a, W: 'a + Write> { /* fields omitted */ }

Helper struct to write payload which is preceded by it's own length in bytes.

Methods

impl<'a, W: 'a + Write> CountedWriter<'a, W>
[src]

[src]

New counted writer on top of the given serial writer

[src]

Finish counted writer routing, which writes accumulated length and actual payload.

Trait Implementations

impl<'a, W: Debug + 'a + Write> Debug for CountedWriter<'a, W>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, W> Send for CountedWriter<'a, W> where
    W: Send

impl<'a, W> Sync for CountedWriter<'a, W> where
    W: Sync