pub struct DriverEventSink(/* private fields */);
Implementations§
Source§impl DriverEventSink
impl DriverEventSink
pub fn new() -> (Self, UnboundedReceiver<DriverEvent>)
pub fn unbounded_send( &self, driver_event: DriverEvent, ) -> Result<(), TrySendError<DriverEvent>>
pub fn disconnect(&mut self)
pub fn unbounded_send_or_respond<R>(
&self,
driver_event: DriverEvent,
responder: R,
response: R::Response<'_>,
) -> Result<R, Error>where
R: ResponderExt,
Trait Implementations§
Source§impl Clone for DriverEventSink
impl Clone for DriverEventSink
Source§fn clone(&self) -> DriverEventSink
fn clone(&self) -> DriverEventSink
Returns a copy 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 moreSource§impl EthernetTxEventSender for DriverEventSink
impl EthernetTxEventSender for DriverEventSink
fn unbounded_send( &self, event: EthernetTxEvent, ) -> Result<(), (String, EthernetTxEvent)>
Source§impl WlanRxEventSender for DriverEventSink
impl WlanRxEventSender for DriverEventSink
fn unbounded_send( &self, event: WlanRxEvent, ) -> Result<(), (String, WlanRxEvent)>
Auto Trait Implementations§
impl Freeze for DriverEventSink
impl !RefUnwindSafe for DriverEventSink
impl !Send for DriverEventSink
impl !Sync for DriverEventSink
impl Unpin for DriverEventSink
impl !UnwindSafe for DriverEventSink
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)