Struct asn1_der::CopyingSource
source · Expand description
A source that also copies each read element to the sink
Warning: if a call to write
fails, this source will return an error and the element that has
been read from the underlying source will be lost
Implementations§
Trait Implementations§
source§impl<S: Source, U: Sink> Source for CopyingSource<S, U>
impl<S: Source, U: Sink> Source for CopyingSource<S, U>
source§fn counting_source(self, ctr: &mut usize) -> CountingSource<'_, Self>
fn counting_source(self, ctr: &mut usize) -> CountingSource<'_, Self>
Creates a counting source
source§fn copying_source<U: Sink>(self, sink: U) -> CopyingSource<Self, U>
fn copying_source<U: Sink>(self, sink: U) -> CopyingSource<Self, U>
Creates a copying source