Struct bcder::decode::CaptureSource[][src]

pub struct CaptureSource<'a, S: 'a> { /* fields omitted */ }
Expand description

A source that captures what has been advanced over.

A capture source wraps a mutable reference to some other source and provides the usual source access. However, instead of dropping octets that have been advanced over, it keeps them around and allows taking them out as a bytes value.

This type is used by Constructed::capture.

Implementations

Creates a new capture source using a reference to some other source.

Converts the capture source into the captured bytes.

Drops the captured bytes.

Advances the underlying source to the end of the captured bytes.

Trait Implementations

The error produced by the source. Read more

Request at least len bytes to be available. Read more

Advance the source by len bytes. Read more

Returns a bytes slice with the available data. Read more

Produces a Bytes value from part of the data. Read more

Takes a single octet from the source. Read more

Takes an optional octet from the source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.