Enum manifesta::DocumentSource [−][src]
A DocumentSource represents a location from which a document can be accessed.
Variants
LocalPath(PathBuf)
To be used when the document is present on disk (e.g. if pulled from the cache), or accessible locally.
To be used when the document has just been downloaded from a remote.
The PathBuf
represents the path to which the document contents were written (as cache).
The Vec<u8>
represents the document contents, so the just downloaded file doesn't have to
be written to the cache location, and read again.
Implementations
impl DocumentSource
[src]
Trait Implementations
impl Debug for DocumentSource
[src]
impl Eq for DocumentSource
[src]
impl PartialEq<DocumentSource> for DocumentSource
[src]
fn eq(&self, other: &DocumentSource) -> bool
[src]
fn ne(&self, other: &DocumentSource) -> bool
[src]
impl StructuralEq for DocumentSource
[src]
impl StructuralPartialEq for DocumentSource
[src]
Auto Trait Implementations
impl RefUnwindSafe for DocumentSource
[src]
impl Send for DocumentSource
[src]
impl Sync for DocumentSource
[src]
impl Unpin for DocumentSource
[src]
impl UnwindSafe for DocumentSource
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,