pub struct Connection<F> { /* private fields */ }
Expand description
A handle to the current session for a given sync root.
Connection will disconnect when dropped. Note that this does NOT mean the sync root will be unregistered. To do so, call SyncRootId::unregister.
Implementations§
Source§impl<T> Connection<T>
impl<T> Connection<T>
Sourcepub fn connection_key(&self) -> i64
pub fn connection_key(&self) -> i64
A raw connection key used to identify the connection.
Sourcepub fn filter(&self) -> &T
pub fn filter(&self) -> &T
A reference to the inner SyncFilter struct.
Trait Implementations§
Source§impl<F: Debug> Debug for Connection<F>
impl<F: Debug> Debug for Connection<F>
Auto Trait Implementations§
impl<F> Freeze for Connection<F>
impl<F> !RefUnwindSafe for Connection<F>
impl<F> Send for Connection<F>
impl<F> Sync for Connection<F>
impl<F> Unpin for Connection<F>
impl<F> !UnwindSafe for Connection<F>
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