Enum tugger_file_manifest::FileData [−][src]
Represents an abstract location for binary data.
Data can be backed by the filesystem or in memory.
Variants
Path(PathBuf)
Implementations
impl FileData
[src]
pub fn resolve(&self) -> Result<Vec<u8>, Error>
[src]
Resolve the data for this instance.
If backed by a file, the file will be read.
pub fn to_memory(&self) -> Result<Self, Error>
[src]
Convert this instance to a memory variant.
This ensures any file-backed data is present in memory.
Trait Implementations
impl Clone for FileData
[src]
impl Debug for FileData
[src]
impl From<&'_ [u8]> for FileData
[src]
impl From<&'_ Path> for FileData
[src]
impl From<PathBuf> for FileData
[src]
impl From<Vec<u8, Global>> for FileData
[src]
impl PartialEq<FileData> for FileData
[src]
impl StructuralPartialEq for FileData
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileData
impl Send for FileData
impl Sync for FileData
impl Unpin for FileData
impl UnwindSafe for FileData
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,