pub enum Extent<T> {
Complete(T),
NeedMore {
up_to: u64,
},
}Expand description
Result of a bounded metadata probe.
Variants§
Complete(T)
The metadata region is fully present in the prefix; here is the parse.
NeedMore
The prefix is too short. Read at least up to up_to bytes (capped at the
file length) and retry. up_to is strictly greater than the current
prefix length unless the parser cannot bound its need, in which case the
caller falls back to reading the whole file.
Trait Implementations§
impl<T: Eq> Eq for Extent<T>
impl<T: PartialEq> StructuralPartialEq for Extent<T>
Auto Trait Implementations§
impl<T> Freeze for Extent<T>where
T: Freeze,
impl<T> RefUnwindSafe for Extent<T>where
T: RefUnwindSafe,
impl<T> Send for Extent<T>where
T: Send,
impl<T> Sync for Extent<T>where
T: Sync,
impl<T> Unpin for Extent<T>where
T: Unpin,
impl<T> UnsafeUnpin for Extent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Extent<T>where
T: UnwindSafe,
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