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

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

[src]

Write a buffer into this object, returning how many bytes were written. Read more

[src]

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0
[src]

Attempts to write an entire buffer into this write. Read more

1.0.0
[src]

Writes a formatted string into this writer, returning any error encountered. Read more

1.0.0
[src]

Creates a "by reference" adaptor for this instance of Write. 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