Struct yew_event_source::EventSourceService [−][src]
An event source service attached to a user context.
Implementations
impl EventSourceService[src]
pub fn new() -> Self[src]
Creates a new service instance.
pub fn connect(
&mut self,
url: &str,
notification: Callback<EventSourceStatus>
) -> Result<EventSourceTask, &str>[src]
&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
impl Debug for EventSourceService[src]
impl Default for EventSourceService[src]
fn default() -> EventSourceService[src]
Auto Trait Implementations
impl RefUnwindSafe for EventSourceService
impl Send for EventSourceService
impl Sync for EventSourceService
impl Unpin for EventSourceService
impl UnwindSafe for EventSourceService
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>,