pub struct HandlerLink<H>where
H: StateHandler,{ /* private fields */ }Implementations§
Source§impl<H: StateHandler> HandlerLink<H>
impl<H: StateHandler> HandlerLink<H>
pub fn send_message<T>(&self, msg: T)
pub fn send_input<T>(&self, msg: T)
pub fn respond<T>(&self, who: HandlerId, output: T)
pub fn callback<F, IN, M>(&self, function: F) -> Callback<IN>where
<H as StateHandler>::Input: 'static,
<H as StateHandler>::Output: 'static,
<H as StateHandler>::Message: 'static,
M: Into<<H as StateHandler>::Message>,
F: Fn(IN) -> M + 'static,
pub fn callback_once<F, IN, M>(&self, function: F) -> Callback<IN>where
<H as StateHandler>::Input: 'static,
<H as StateHandler>::Output: 'static,
<H as StateHandler>::Message: 'static,
M: Into<<H as StateHandler>::Message>,
F: FnOnce(IN) -> M + 'static,
Trait Implementations§
Source§impl<H> Clone for HandlerLink<H>where
H: StateHandler,
impl<H> Clone for HandlerLink<H>where
H: StateHandler,
Auto Trait Implementations§
impl<H> Freeze for HandlerLink<H>
impl<H> !RefUnwindSafe for HandlerLink<H>
impl<H> !Send for HandlerLink<H>
impl<H> !Sync for HandlerLink<H>
impl<H> Unpin for HandlerLink<H>
impl<H> !UnwindSafe for HandlerLink<H>
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