pub struct EventSourceService {}
Expand description
An event source service attached to a user context.
Implementations§
Source§impl EventSourceService
impl EventSourceService
Sourcepub fn connect(
&mut self,
url: &str,
notification: Callback<EventSourceStatus>,
) -> Result<EventSourceTask, &str>
pub fn connect( &mut self, url: &str, notification: Callback<EventSourceStatus>, ) -> Result<EventSourceTask, &str>
Connects to a server at url
by an event source connection.
The notification
callback is fired when either an open or error event
happens.
Trait Implementations§
Source§impl Debug for EventSourceService
impl Debug for EventSourceService
Source§impl Default for EventSourceService
impl Default for EventSourceService
Source§fn default() -> EventSourceService
fn default() -> EventSourceService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventSourceService
impl RefUnwindSafe for EventSourceService
impl Send for EventSourceService
impl Sync for EventSourceService
impl Unpin for EventSourceService
impl UnwindSafe for EventSourceService
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
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.