Skip to main content

EventResult

Type Alias EventResult 

Source
pub type EventResult = CoreResult<CoreEvent>;
Available on crate feature websocket only.

Aliased Type§

pub enum EventResult {
    Ok(String),
    Err(Arc<Error>),
}

Variants§

§1.0.0

Ok(String)

Contains the success value

§1.0.0

Err(Arc<Error>)

Contains the error value

Trait Implementations§

Source§

impl EventParser for EventResult

Source§

type Error = ClientError

Source§

fn parse_kind(&self) -> Result<EventKind, Self::Error>

Parse kind cheaply without allocations
Source§

fn parse_user_id(&self) -> Result<Option<UserId>, Self::Error>

Parse user ID cheaply without allocations
Source§

fn parse_event(&self) -> Result<Event, Self::Error>

Parse the whole events