Struct yew_state::handler::HandlerLink [−][src]
Implementations
impl<H: StateHandler> HandlerLink<H>
[src]
pub fn send_message<T>(&self, msg: T) where
T: Into<<H as StateHandler>::Message>,
[src]
T: Into<<H as StateHandler>::Message>,
pub fn send_input<T>(&self, msg: T) where
T: Into<<H as StateHandler>::Input>,
[src]
T: Into<<H as StateHandler>::Input>,
pub fn respond<T>(&self, who: HandlerId, output: T) where
T: Into<<H as StateHandler>::Output>,
[src]
T: Into<<H as StateHandler>::Output>,
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,
[src]
<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,
[src]
<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
impl<H> Clone for HandlerLink<H> where
H: StateHandler,
[src]
H: StateHandler,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,