Struct bcder::string::OctetStringSource
source · pub struct OctetStringSource { /* private fields */ }Expand description
A source atop an octet string.
You can get a value of this type by calling OctetString::source.
Trait Implementations§
source§impl Source for OctetStringSource
impl Source for OctetStringSource
source§fn request(&mut self, len: usize) -> Result<usize, Error>
fn request(&mut self, len: usize) -> Result<usize, Error>
Request at least
len bytes to be available. Read moresource§fn advance(&mut self, len: usize) -> Result<(), Error>
fn advance(&mut self, len: usize) -> Result<(), Error>
Advance the source by
len bytes. Read moresource§fn bytes(&self, start: usize, end: usize) -> Bytes
fn bytes(&self, start: usize, end: usize) -> Bytes
Produces a
Bytes value from part of the data. Read more