Trait rump::transport::WampConnector [] [src]

pub trait WampConnector {
    fn connect<F>(url: String, serializer: Serializer, on_message: F) -> WampResult<Self> where Self: Sized, F: Fn(Message) + Send;
}

A WampConnector defines methods for a custom socket type to connect to another endpoint and to receive message on the socket

Required Methods

fn connect<F>(url: String, serializer: Serializer, on_message: F) -> WampResult<Self> where Self: Sized, F: Fn(Message) + Send

Implementors