pub struct Loaded {
pub version: u16,
pub keys: [usize; 16],
pub expired: usize,
pub libraries: usize,
}Expand description
What a file put where.
Counts and not keys, because both callers report rather than inspect. What a person wants to see after loading a file somebody handed them is how much of it landed and whether any of it was dropped on the way, and the answer to the second is what tells them the file is older than they thought.
Fields§
§version: u16The version out of the header.
keys: [usize; 16]Keys that landed, per database.
A fixed array because there are sixteen databases and there is no
arrangement of a file that makes seventeen. Reported rather than summed
because a file that put everything in database nine is a file somebody
needs to know about before they wonder why DBSIZE says nought.
expired: usizeKeys the file carried that were already dead, so were read and dropped.
libraries: usizeFunction libraries the file carried.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Loaded
impl RefUnwindSafe for Loaded
impl Send for Loaded
impl Sync for Loaded
impl Unpin for Loaded
impl UnsafeUnpin for Loaded
impl UnwindSafe for Loaded
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more