[][src]Struct reqwest_eventsource::Event

pub struct Event {
    pub event: Option<String>,
    pub data: Vec<u8>,
    pub id: Option<Vec<u8>>,
    pub retry: Option<Duration>,
}

An Event

Fields

event: Option<String>

The event name if given

data: Vec<u8>

The event data

id: Option<Vec<u8>>

The event id if given

retry: Option<Duration>

Retry duration if given

Implementations

impl Event[src]

pub fn is_empty(&self) -> bool[src]

Check if an event is the default empty event

Trait Implementations

impl Debug for Event[src]

impl Default for Event[src]

impl Eq for Event[src]

impl PartialEq<Event> for Event[src]

impl StructuralEq for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.