binaryninja::websocket

Trait WebsocketClient

source
pub trait WebsocketClient: Sync + Send {
    // Required methods
    fn from_core(core: Ref<CoreWebsocketClient>) -> Self;
    fn connect<I, K, V>(&self, host: &str, headers: I) -> bool
       where I: IntoIterator<Item = (K, V)>,
             K: BnStrCompatible,
             V: BnStrCompatible;
    fn write(&self, data: &[u8]) -> bool;
    fn disconnect(&self) -> bool;
}

Required Methods§

source

fn from_core(core: Ref<CoreWebsocketClient>) -> Self

Called to construct this client object with the given core object.

source

fn connect<I, K, V>(&self, host: &str, headers: I) -> bool

source

fn write(&self, data: &[u8]) -> bool

source

fn disconnect(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§