pub enum DetectionSource<'a> {
None,
Content(&'a [u8]),
Path(&'a Path),
}Expand description
Source available for precise MIME refinement.
Variants§
None
No readable source is available.
Content(&'a [u8])
In-memory content bytes are available.
Path(&'a Path)
A local file path is available.
Trait Implementations§
Source§impl<'a> Clone for DetectionSource<'a>
impl<'a> Clone for DetectionSource<'a>
Source§fn clone(&self) -> DetectionSource<'a>
fn clone(&self) -> DetectionSource<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DetectionSource<'a>
impl<'a> Debug for DetectionSource<'a>
impl<'a> Copy for DetectionSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for DetectionSource<'a>
impl<'a> RefUnwindSafe for DetectionSource<'a>
impl<'a> Send for DetectionSource<'a>
impl<'a> Sync for DetectionSource<'a>
impl<'a> Unpin for DetectionSource<'a>
impl<'a> UnsafeUnpin for DetectionSource<'a>
impl<'a> UnwindSafe for DetectionSource<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
Source§fn into_config_default(self) -> T
fn into_config_default(self) -> T
Converts this fallback value into
T.Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.