Struct cloud_filter::root::Connection
source · pub struct Connection<T> { /* 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) -> RawConnectionKey
pub fn connection_key(&self) -> RawConnectionKey
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<T: Debug> Debug for Connection<T>
impl<T: Debug> Debug for Connection<T>
Auto Trait Implementations§
impl<T> Freeze for Connection<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Connection<T>
impl<T> Send for Connection<T>where
T: Send,
impl<T> Sync for Connection<T>where
T: Sync,
impl<T> Unpin for Connection<T>where
T: Unpin,
impl<T> !UnwindSafe for Connection<T>
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