pub enum Content<'a> {
DigestOnly,
Embedded,
External(&'a dyn Fn(ItemLocation, &[u8]) -> String),
}Expand description
How the host keeps document bytes.
Variants§
DigestOnly
Only digests: nothing is replayable. The default.
Embedded
Embedded in the bundle.
External(&'a dyn Fn(ItemLocation, &[u8]) -> String)
Stored by the host, which returns an opaque reference for the bytes.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Content<'a>
impl<'a> !Send for Content<'a>
impl<'a> !Sync for Content<'a>
impl<'a> !UnwindSafe for Content<'a>
impl<'a> Freeze for Content<'a>
impl<'a> Unpin for Content<'a>
impl<'a> UnsafeUnpin for Content<'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