[−][src]Struct moteconnection::dispatcher::DispatcherHandle
Provides a handle representing the dispatcher for the Connection
.
Fields
tx: Sender<Event<Bytes>>
The sender end for the Connection
rx: Receiver<Event<Bytes>>
The receiver end for the Connection
stopper: Box<dyn FnOnce() -> Result<(), &'static str>>
The stopper function for the Dispatcher
Implementations
impl DispatcherHandle
[src]
pub fn new(
tx: Sender<Event<Bytes>>,
rx: Receiver<Event<Bytes>>
) -> DispatcherHandle
[src]
tx: Sender<Event<Bytes>>,
rx: Receiver<Event<Bytes>>
) -> DispatcherHandle
Creates a new DispatcherHandle.
pub fn with_stopper(
tx: Sender<Event<Bytes>>,
rx: Receiver<Event<Bytes>>,
stopper: Box<dyn FnOnce() -> Result<(), &'static str>>
) -> DispatcherHandle
[src]
tx: Sender<Event<Bytes>>,
rx: Receiver<Event<Bytes>>,
stopper: Box<dyn FnOnce() -> Result<(), &'static str>>
) -> DispatcherHandle
Creates a new DispatcherHandle with a function to be called when stopping.
Auto Trait Implementations
impl !RefUnwindSafe for DispatcherHandle
impl !Send for DispatcherHandle
impl !Sync for DispatcherHandle
impl Unpin for DispatcherHandle
impl !UnwindSafe for DispatcherHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,