pub struct Controller<C, W: WakerSend> { /* private fields */ }
Expand description
Control API to the service which is run inside a reactor.
The service is passed to the Reactor
constructor as a parameter and also exposes Handler
API to the reactor itself for receiving reactor-generated events. This API is used by the
reactor to inform the service about incoming commands, sent via this Controller
API (see
Handler::Command
for the details).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, W> Freeze for Controller<C, W>where
W: Freeze,
impl<C, W> RefUnwindSafe for Controller<C, W>where
W: RefUnwindSafe,
impl<C, W> Send for Controller<C, W>where
C: Send,
impl<C, W> Sync for Controller<C, W>where
C: Send,
impl<C, W> Unpin for Controller<C, W>where
W: Unpin,
impl<C, W> UnwindSafe for Controller<C, W>where
W: UnwindSafe,
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