Struct yew_event_source::EventSourceTask [−][src]
A handle to control current event source connection. Implements Task and could be canceled.
Implementations
impl EventSourceTask[src]
pub fn add_event_listener<S, OUT: 'static>(
&mut self,
event_type: S,
callback: Callback<OUT>
) where
S: Into<Cow<'static, str>>,
OUT: From<Text>, [src]
&mut self,
event_type: S,
callback: Callback<OUT>
) where
S: Into<Cow<'static, str>>,
OUT: From<Text>,
Register a callback for events of a given type
This registers an event listener, which will fire callback when an
event of event_type occurs.
pub fn ready_state(&self) -> ReadyState[src]
Query the ready state of the event source.
Trait Implementations
impl Debug for EventSourceTask[src]
impl Drop for EventSourceTask[src]
impl Task for EventSourceTask[src]
Auto Trait Implementations
impl !RefUnwindSafe for EventSourceTask
impl !Send for EventSourceTask
impl !Sync for EventSourceTask
impl Unpin for EventSourceTask
impl !UnwindSafe for EventSourceTask
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> 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.
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>,