#[non_exhaustive]pub enum CoreEvent {
Event(SerialEvent),
Overflow {
dropped_from: u64,
},
PortState {
path: String,
state: PortStatus,
},
}Expand description
Event of the core’s new API (see CoreSink).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Event(SerialEvent)
A watch event, exactly as the old watch sends it (the final Disconnect included).
Overflow
The queue overflowed: data from byte dropped_from of this stream on (counting
Data bytes delivered before it) is gone, and the sink is unsubscribed.
PortState
A port changed state (SerialManager::subscribe_core only).
Trait Implementations§
Auto Trait Implementations§
impl Forget for CoreEvent
impl Freeze for CoreEvent
impl RefUnwindSafe for CoreEvent
impl Send for CoreEvent
impl Sync for CoreEvent
impl Unpin for CoreEvent
impl UnsafeUnpin for CoreEvent
impl UnwindSafe for CoreEvent
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