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]
&self,
metadata: &BoxMetadata,
key: S
) -> Option<&[u8]>
pub fn upcast(self) -> Record
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnwindSafe for FileRecord
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,