pub enum DeviceEvent {
OnReadyForSendFrames {
number_of_frames: u32,
},
OnReceiveFrame {
data: Vec<u8>,
},
OnError {
error: Error,
did_close: bool,
},
}
Variants§
Implementations§
Source§impl DeviceEvent
impl DeviceEvent
pub fn into_on_ready_for_send_frames(self) -> Option<u32>
pub fn into_on_receive_frame(self) -> Option<Vec<u8>>
pub fn into_on_error(self) -> Option<(Error, bool)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
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