Struct gloo::net::eventsource::futures::EventSourceSubscription
source · pub struct EventSourceSubscription { /* private fields */ }
Available on crate features
net
and eventsource
only.Expand description
Wrapper around browser’s EventSource API.
Trait Implementations§
source§impl Debug for EventSourceSubscription
impl Debug for EventSourceSubscription
source§impl Drop for EventSourceSubscription
impl Drop for EventSourceSubscription
source§impl Stream for EventSourceSubscription
impl Stream for EventSourceSubscription
§type Item = Result<(String, MessageEvent), EventSourceError>
type Item = Result<(String, MessageEvent), EventSourceError>
Values yielded by the stream.
source§fn poll_next(
self: Pin<&mut EventSourceSubscription>,
cx: &mut Context<'_>
) -> Poll<Option<<EventSourceSubscription as Stream>::Item>>
fn poll_next( self: Pin<&mut EventSourceSubscription>, cx: &mut Context<'_> ) -> Poll<Option<<EventSourceSubscription as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read moreimpl<'pin> Unpin for EventSourceSubscriptionwhere __EventSourceSubscription<'pin>: Unpin,
Auto Trait Implementations§
impl !RefUnwindSafe for EventSourceSubscription
impl !Send for EventSourceSubscription
impl !Sync for EventSourceSubscription
impl !UnwindSafe for EventSourceSubscription
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