pub struct EventSource {}Implementations§
Source§impl EventSource
impl EventSource
Sourcepub fn new(url: Url, headers: HeaderMap) -> ReceiverSource
pub fn new(url: Url, headers: HeaderMap) -> ReceiverSource
Constructs a new EventSource client for the given URL on
a separate thread and sends all events through a channel
through a Receiver.
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl Send for EventSource
impl Sync for EventSource
impl Unpin for EventSource
impl UnsafeUnpin for EventSource
impl UnwindSafe for EventSource
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