pub enum CrashLogSource {
Acpi,
PmtDevice(PmtDeviceId),
EventLog,
}Expand description
Represents a source from which Crash Log data can be extracted
Each source support different type of capabilities, which are represented as Capabilities
Variants§
Acpi
ACPI BERT table
PmtDevice(PmtDeviceId)
Intel PMT device that exposes a Crash Log region
EventLog
OS Event Log
Implementations§
Source§impl CrashLogSource
impl CrashLogSource
Sourcepub fn discover() -> Vec<Self>
pub fn discover() -> Vec<Self>
Returns all the Crash Log sources that are available in the platform
Sourcepub fn extract(&self) -> Result<Vec<CrashLog>, Error>
pub fn extract(&self) -> Result<Vec<CrashLog>, Error>
Returns the Crash Log extracted from the platform using the current Crash Log source
Sourcepub fn trigger(&self) -> Result<(), Error>
pub fn trigger(&self) -> Result<(), Error>
Triggers an on-demand Crash Log collection on this source
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns a human readable description of the Crash Log source
Sourcepub fn capabilities(&self) -> Capabilities
pub fn capabilities(&self) -> Capabilities
Returns all the capabilities of the Crash Log Source
Trait Implementations§
Source§impl Clone for CrashLogSource
impl Clone for CrashLogSource
Source§fn clone(&self) -> CrashLogSource
fn clone(&self) -> CrashLogSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrashLogSource
impl Debug for CrashLogSource
Source§impl Display for CrashLogSource
impl Display for CrashLogSource
Source§impl FromStr for CrashLogSource
impl FromStr for CrashLogSource
Source§impl Ord for CrashLogSource
impl Ord for CrashLogSource
Source§fn cmp(&self, other: &CrashLogSource) -> Ordering
fn cmp(&self, other: &CrashLogSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CrashLogSource
impl PartialEq for CrashLogSource
Source§fn eq(&self, other: &CrashLogSource) -> bool
fn eq(&self, other: &CrashLogSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CrashLogSource
impl PartialOrd for CrashLogSource
impl Eq for CrashLogSource
impl StructuralPartialEq for CrashLogSource
Auto Trait Implementations§
impl Freeze for CrashLogSource
impl RefUnwindSafe for CrashLogSource
impl Send for CrashLogSource
impl Sync for CrashLogSource
impl Unpin for CrashLogSource
impl UnsafeUnpin for CrashLogSource
impl UnwindSafe for CrashLogSource
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