pub struct SourceDecoding {
pub explicit: Option<String>,
pub declared: Option<Declared>,
}Expand description
What a mount carries to the boundary: its ?encoding= option
and the reporter to consult. One per mount, handed to every
layer that turns bytes into text under it (an archive’s
members, a folder’s grafted files, a crawl store’s pages).
Fields§
§explicit: Option<String>§declared: Option<Declared>Implementations§
Source§impl SourceDecoding
impl SourceDecoding
Sourcepub fn with_option(self, label: Option<&str>) -> Result<Self, SourceError>
pub fn with_option(self, label: Option<&str>) -> Result<Self, SourceError>
Validate the option at open: an unknown label is refused before any byte is read.
pub fn with_declared(self, declared: Declared) -> Self
Trait Implementations§
Source§impl Clone for SourceDecoding
impl Clone for SourceDecoding
Auto Trait Implementations§
impl Freeze for SourceDecoding
impl RefUnwindSafe for SourceDecoding
impl Send for SourceDecoding
impl Sync for SourceDecoding
impl Unpin for SourceDecoding
impl UnsafeUnpin for SourceDecoding
impl UnwindSafe for SourceDecoding
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