pub struct Sniff {
pub extension: Option<String>,
pub head: Vec<u8>,
}Expand description
Everything detection needs about a file: its extension and its head bytes.
Fields§
§extension: Option<String>§head: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Sniff
impl Freeze for Sniff
impl Move for Sniff
impl RefUnwindSafe for Sniff
impl Send for Sniffwhere
RawVecInner: Send,
impl Sync for Sniffwhere
RawVecInner: Sync,
impl Unpin for Sniff
impl UnsafeUnpin for Sniff
impl UnwindSafe for Sniffwhere
RawVecInner: 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