Struct wampire::client::Connection
source · [−]pub struct Connection { /* private fields */ }
Expand description
Represents WAMP connection
Implementations
sourceimpl Connection
impl Connection
sourcepub fn new(url: &str, realm: &str) -> Connection
pub fn new(url: &str, realm: &str) -> Connection
Create new connection with uri and realm
sourcepub fn connect(&self) -> WampResult<Client>
pub fn connect(&self) -> WampResult<Client>
Connect to router
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more