pub struct Connection<P: Protocol> { /* private fields */ }Implementations§
Source§impl<P: Protocol> Connection<P>
impl<P: Protocol> Connection<P>
pub fn new(inner: Connection, rt: Runtimes) -> Self
Source§impl<P: Protocol> Connection<P>
impl<P: Protocol> Connection<P>
pub async fn new_handle(&mut self) -> Result<Handle<P>, Error>
pub fn new_handle_sync(&mut self) -> Result<Handle<P>, Error>
Auto Trait Implementations§
impl<P> Freeze for Connection<P>
impl<P> !RefUnwindSafe for Connection<P>
impl<P> Send for Connection<P>where
P: Send,
impl<P> Sync for Connection<P>where
P: Sync,
impl<P> Unpin for Connection<P>where
P: Unpin,
impl<P> !UnwindSafe for Connection<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more