Enum reqwest_eventsource::Event
source · pub enum Event {
Open,
Message(MessageEvent),
}
Expand description
Events created by the EventSource
Variants§
Open
The event fired when the connection is opened
Message(MessageEvent)
The event fired when a MessageEvent
is received
Trait Implementations§
source§impl From<Event> for Event
impl From<Event> for Event
source§fn from(event: MessageEvent) -> Self
fn from(event: MessageEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq for Event
impl PartialEq for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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