pub struct CoordinatedConnection { /* private fields */ }Expand description
Store mutex with a fixed ordering: owner gate, then the connection.
Implementations§
Source§impl CoordinatedConnection
impl CoordinatedConnection
pub fn new(conn: OwnedConnection) -> Self
pub fn coordination(&self) -> Arc<Coordination> ⓘ
pub fn lock(&self) -> Result<ConnectionGuard<'_>, &'static str>
Auto Trait Implementations§
impl !Freeze for CoordinatedConnection
impl RefUnwindSafe for CoordinatedConnection
impl Send for CoordinatedConnection
impl Sync for CoordinatedConnection
impl Unpin for CoordinatedConnection
impl UnsafeUnpin for CoordinatedConnection
impl UnwindSafe for CoordinatedConnection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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