pub struct EventSourceTask { /* fields omitted */ }
Expand description
A handle to control current event source connection. Implements Task
and could be canceled.
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.
Query the ready state of the event source.
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Returns true
if task is active.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Convert self
to an optional value of a Properties
struct.
Convert self
to a value of a Properties
struct.
Convert self
to a value of a Properties
struct.
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<T> Any for T where
T: Any,