pub struct EntryMetadata<S>{
pub file_name: S,
pub ctime: Time,
pub file_size: u32,
}
Expand description
Metadata for an entry in the ROMFS.
Occupies Self::SIZE
bytes of ROM when encoded.
Fields§
§file_name: S
The file name for this entry.
Call file_name.as_ref()
to get the contents as a string slice
(&str
).
ctime: Time
The creation time, of the file associated with this entry.
file_size: u32
The size, in bytes, of the file associated with this entry.
Implementations§
Trait Implementations§
Source§impl<S> Clone for EntryMetadata<S>
impl<S> Clone for EntryMetadata<S>
Source§fn clone(&self) -> EntryMetadata<S>
fn clone(&self) -> EntryMetadata<S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> Debug for EntryMetadata<S>
impl<S> Debug for EntryMetadata<S>
Source§impl<S> PartialEq for EntryMetadata<S>
impl<S> PartialEq for EntryMetadata<S>
impl<S> Eq for EntryMetadata<S>
impl<S> StructuralPartialEq for EntryMetadata<S>
Auto Trait Implementations§
impl<S> Freeze for EntryMetadata<S>where
S: Freeze,
impl<S> RefUnwindSafe for EntryMetadata<S>where
S: RefUnwindSafe,
impl<S> Send for EntryMetadata<S>where
S: Send,
impl<S> Sync for EntryMetadata<S>where
S: Sync,
impl<S> Unpin for EntryMetadata<S>where
S: Unpin,
impl<S> UnwindSafe for EntryMetadata<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more