Struct tugger_file_manifest::FileEntry[][src]

pub struct FileEntry {
    pub data: FileData,
    pub executable: bool,
}

Represents a virtual file, without an associated path.

Fields

data: FileData

The content of the file.

executable: bool

Whether the file is executable.

Implementations

impl FileEntry[src]

pub fn to_memory(&self) -> Result<Self, Error>[src]

Obtain a new instance guaranteed to have file data stored in memory.

pub fn write_to_path(
    &self,
    dest_path: impl AsRef<Path>
) -> Result<(), FileManifestError>
[src]

Write this file entry to the given destination path.

Trait Implementations

impl Clone for FileEntry[src]

impl Debug for FileEntry[src]

impl From<File> for FileEntry[src]

impl PartialEq<FileEntry> for FileEntry[src]

impl StructuralPartialEq for FileEntry[src]

impl TryFrom<&'_ Path> for FileEntry[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.