Struct box_format::FileRecord[][src]

pub struct FileRecord {
    pub compression: Compression,
    pub length: u64,
    pub decompressed_length: u64,
    pub data: NonZeroU64,
    pub name: String,
    pub attrs: AttrMap,
}

Fields

compression: Compression

a bytestring representing the type of compression being used, always 8 bytes.

length: u64

The exact length of the data as written, ignoring any padding.

decompressed_length: u64

A hint for the size of the content when decompressed. Do not trust in absolute terms.

data: NonZeroU64

The position of the data in the file

name: String

The name of the file

attrs: AttrMap

Optional attributes for the given paths, such as Windows or Unix ACLs, last accessed time, etc.

Implementations

impl FileRecord[src]

pub fn compression(&self) -> Compression[src]

pub fn attr<S: AsRef<str>>(
    &self,
    metadata: &BoxMetadata,
    key: S
) -> Option<&[u8]>
[src]

pub fn upcast(self) -> Record[src]

Trait Implementations

impl Debug for FileRecord[src]

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> Instrument for T[src]

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

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.