pub enum LogDiagnostic {
NeverRun {
unit_name: String,
},
JournalInaccessible {
error: String,
},
PermissionDenied {
error: String,
},
NoLogsRecorded {
unit_name: String,
},
JournalctlError {
stderr: String,
},
}Expand description
Diagnostic result explaining why logs might be missing
Variants§
NeverRun
Unit has never been activated (ActiveEnterTimestamp is 0)
JournalInaccessible
Journal is not accessible (likely permissions)
PermissionDenied
Unit-specific permission issue
NoLogsRecorded
Journal is available but no logs exist for this unit
JournalctlError
journalctl command failed with an error
Implementations§
Trait Implementations§
Source§impl Clone for LogDiagnostic
impl Clone for LogDiagnostic
Source§fn clone(&self) -> LogDiagnostic
fn clone(&self) -> LogDiagnostic
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LogDiagnostic
impl RefUnwindSafe for LogDiagnostic
impl Send for LogDiagnostic
impl Sync for LogDiagnostic
impl Unpin for LogDiagnostic
impl UnwindSafe for LogDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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