pub struct ConnectionHandle { /* private fields */ }Expand description
Connection handle for managing connections
Implementations§
Source§impl ConnectionHandle
impl ConnectionHandle
Sourcepub fn new(id: u64, connection: Connection) -> Self
pub fn new(id: u64, connection: Connection) -> Self
Create a new connection handle
Sourcepub async fn try_lock(&self) -> Result<MutexGuard<'_, Connection>>
pub async fn try_lock(&self) -> Result<MutexGuard<'_, Connection>>
Try to lock the connection
Trait Implementations§
Source§impl Clone for ConnectionHandle
impl Clone for ConnectionHandle
Source§fn clone(&self) -> ConnectionHandle
fn clone(&self) -> ConnectionHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionHandle
impl !RefUnwindSafe for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl !UnwindSafe for ConnectionHandle
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