pub enum PhyEventWatcherEvent {
OnCriticalError {
phy_id: u16,
reason_code: CriticalErrorReason,
},
#[non_exhaustive] _UnknownEvent {
ordinal: u64,
},
}Variants§
Implementations§
Source§impl PhyEventWatcherEvent
impl PhyEventWatcherEvent
pub fn into_on_critical_error(self) -> Option<(u16, CriticalErrorReason)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhyEventWatcherEvent
impl RefUnwindSafe for PhyEventWatcherEvent
impl Send for PhyEventWatcherEvent
impl Sync for PhyEventWatcherEvent
impl Unpin for PhyEventWatcherEvent
impl UnwindSafe for PhyEventWatcherEvent
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