ZeekClient

Trait ZeekClient 

Source
pub trait ZeekClient {
    // Required methods
    fn connected(
        &mut self,
        endpoint: String,
        version: String,
    ) -> impl Future<Output = ()> + Send;
    fn event(
        &mut self,
        topic: String,
        event: Event,
    ) -> impl Future<Output = ()> + Send;
    fn error(&mut self, error: ProtocolError) -> impl Future<Output = ()> + Send;
}

Required Methods§

Source

fn connected( &mut self, endpoint: String, version: String, ) -> impl Future<Output = ()> + Send

Callback invoked when we have finished the handshake with the server.

Source

fn event( &mut self, topic: String, event: Event, ) -> impl Future<Output = ()> + Send

Callback invoked when an event is received.

Source

fn error(&mut self, error: ProtocolError) -> impl Future<Output = ()> + Send

Callback invoked when an error is received.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§