Struct bytecodec::combinator::Buffered [] [src]

pub struct Buffered<D: Decode> { /* fields omitted */ }

Combinator that gives a buffer to the decoder.

Thsi is created by calling DecodeExt::buffer method.

Methods

impl<D: Decode> Buffered<D>
[src]

[src]

Returns true if the decoder has a decoded item, other false.

Note that the decoder cannot decode new items if this method returns true.

[src]

Returns a reference to the item decoded by the decoder in the last decode call.

[src]

Takes the item decoded by the decoder in the last decode call.

Important traits for &'a mut W
[src]

Returns a reference to the inner decoder.

Important traits for &'a mut W
[src]

Returns a mutable reference to the inner decoder.

[src]

Takes ownership of this instance and returns the inner decoder.

Trait Implementations

impl<D: Decode + Debug> Debug for Buffered<D>
[src]

[src]

Formats the value using the given formatter. Read more

impl<D: Decode + Default> Default for Buffered<D>
[src]

[src]

Returns the "default value" for a type. Read more

impl<D: Decode> Decode for Buffered<D>
[src]

The type of items to be decoded.

[src]

Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more

[src]

Returns the lower bound of the number of bytes needed to decode the next item. Read more

Auto Trait Implementations

impl<D> Send for Buffered<D> where
    D: Send,
    <D as Decode>::Item: Send

impl<D> Sync for Buffered<D> where
    D: Sync,
    <D as Decode>::Item: Sync