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§
Sourcefn connected(
&mut self,
endpoint: String,
version: String,
) -> impl Future<Output = ()> + Send
fn connected( &mut self, endpoint: String, version: String, ) -> impl Future<Output = ()> + Send
Callback invoked when we have finished the handshake with the server.
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.