pub enum LogResult {
Ok,
Err {
kind: &'static str,
message: String,
},
}Expand description
Result status as recorded in a log entry. Successful operations
are recorded as Ok; failed ones carry the error variant tag
plus an optional short message. We keep the message bounded so a
runaway driver-error string cannot blow up the sink buffer.
Variants§
Implementations§
Source§impl LogResult
impl LogResult
Sourcepub fn from_result<T>(r: &ResourceResult<T>) -> Self
pub fn from_result<T>(r: &ResourceResult<T>) -> Self
Convert a ResourceResult outcome into a LogResult,
truncating overlong messages to keep records bounded.
Trait Implementations§
impl Eq for LogResult
impl StructuralPartialEq for LogResult
Auto Trait Implementations§
impl Freeze for LogResult
impl RefUnwindSafe for LogResult
impl Send for LogResult
impl Sync for LogResult
impl Unpin for LogResult
impl UnsafeUnpin for LogResult
impl UnwindSafe for LogResult
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more