pub(crate) struct WeakConnection {
inner: Weak<ConnectionInner>,
}Fields§
§inner: Weak<ConnectionInner>Implementations§
Source§impl WeakConnection
impl WeakConnection
Sourcepub fn upgrade(&self) -> Option<Connection>
pub fn upgrade(&self) -> Option<Connection>
Upgrade to a Connection.
Trait Implementations§
Source§impl Clone for WeakConnection
impl Clone for WeakConnection
Source§fn clone(&self) -> WeakConnection
fn clone(&self) -> WeakConnection
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 moreSource§impl Debug for WeakConnection
impl Debug for WeakConnection
Source§impl From<&Connection> for WeakConnection
impl From<&Connection> for WeakConnection
Source§fn from(conn: &Connection) -> Self
fn from(conn: &Connection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WeakConnection
impl !RefUnwindSafe for WeakConnection
impl Send for WeakConnection
impl Sync for WeakConnection
impl Unpin for WeakConnection
impl !UnwindSafe for WeakConnection
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