[][src]Trait eventum::core::EventHandler

pub trait EventHandler where
    Self: Send,
    Self: Sync
{ fn handle(&self, event_type: EventType) -> Result<(), EventError>; fn set_token(&self, _token: Token) { ... }
fn get_token(&self) -> Token { ... } }

Event Handler trait. Token is associated with EventHandler and certain event expected.

Required methods

fn handle(&self, event_type: EventType) -> Result<(), EventError>

Handle event.

Loading content...

Provided methods

fn set_token(&self, _token: Token)

Set token to event handler.

fn get_token(&self) -> Token

Get token from event handler.

Loading content...

Implementors

impl EventHandler for UdsClientInner[src]

EventHandler implementation for UdsClient.

fn handle(&self, e: EventType) -> Result<(), EventError>[src]

Handle event.

impl EventHandler for UdsServerEntry[src]

EventHandler implementation for UdsServerEntry.

fn handle(&self, e: EventType) -> Result<(), EventError>[src]

Handle event.

fn set_token(&self, token: Token)[src]

Set token to entry.

fn get_token(&self) -> Token[src]

Get token from entry.

impl EventHandler for UdsServerInner[src]

EventHandler implementation for UdsServerInner.

fn handle(&self, e: EventType) -> Result<(), EventError>[src]

Event handler.

Loading content...