Struct iroh_bytes::collection::NoCollectionParser
source · pub struct NoCollectionParser;Expand description
A collection parser that just disables collections entirely.
Trait Implementations§
source§impl Clone for NoCollectionParser
impl Clone for NoCollectionParser
source§fn clone(&self) -> NoCollectionParser
fn clone(&self) -> NoCollectionParser
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CollectionParser for NoCollectionParser
impl CollectionParser for NoCollectionParser
A CustomCollection for NoCollectionParser.
This is useful for when you don’t want to support collections at all.
source§fn parse<'a, R: AsyncSliceReader + 'a>(
&'a self,
_format: u64,
_reader: R
) -> LocalBoxFuture<'a, Result<(Box<dyn LinkStream>, CollectionStats)>>
fn parse<'a, R: AsyncSliceReader + 'a>( &'a self, _format: u64, _reader: R ) -> LocalBoxFuture<'a, Result<(Box<dyn LinkStream>, CollectionStats)>>
Parse a collection with this parser
Auto Trait Implementations§
impl RefUnwindSafe for NoCollectionParser
impl Send for NoCollectionParser
impl Sync for NoCollectionParser
impl Unpin for NoCollectionParser
impl UnwindSafe for NoCollectionParser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more