[][src]Trait edit_common::simple_ws::SimpleSocket

pub trait SimpleSocket: Sized {
    type Args;
    fn initialize(
        args: Self::Args,
        url: &str,
        out: Arc<Mutex<Sender>>
    ) -> Result<Self, Error>;
fn handle_message(&mut self, data: &[u8]) -> Result<(), Error>;
fn cleanup(&mut self) -> Result<(), Error>; }

Associated Types

Required Methods

Implementors