Struct keylime::ima::MeasurementList
source · [−]pub struct MeasurementList { /* private fields */ }
Expand description
MeasurementList models the IMA measurement lists’s last two known numbers of entries in the log and filesizes at that point
Implementations
sourceimpl MeasurementList
impl MeasurementList
pub fn new() -> Self
pub fn reset(&mut self)
sourcepub fn read(
&mut self,
ima_file: &mut File,
nth_entry: u64
) -> Result<(String, u64, u64), Error>
pub fn read(
&mut self,
ima_file: &mut File,
nth_entry: u64
) -> Result<(String, u64, u64), Error>
Read the IMA measurement list starting from a given entry. The entry may be of any value 0 <= entry <= entries_in_log where entries_in_log + 1 indicates that the client wants to read the next entry once available. If the entry is outside this range, the function will automatically read from the 0-th entry. This function returns the measurement list and the entry from where it was read and the current number of entries in the file.
Trait Implementations
sourceimpl Debug for MeasurementList
impl Debug for MeasurementList
Auto Trait Implementations
impl RefUnwindSafe for MeasurementList
impl Send for MeasurementList
impl Sync for MeasurementList
impl Unpin for MeasurementList
impl UnwindSafe for MeasurementList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more