pub struct MemoryConnectionPresence<P> { /* private fields */ }Expand description
Thread-safe active connection directory.
Implementations§
Source§impl<P> MemoryConnectionPresence<P>
impl<P> MemoryConnectionPresence<P>
Trait Implementations§
Source§impl<P> ConnectionPresence<P> for MemoryConnectionPresence<P>
impl<P> ConnectionPresence<P> for MemoryConnectionPresence<P>
Source§fn register(
&self,
context: ConnectionContext<P>,
) -> BoxFuture<'_, SoapResult<()>>
fn register( &self, context: ConnectionContext<P>, ) -> BoxFuture<'_, SoapResult<()>>
Registers one newly established connection. Read more
Source§fn remove<'a>(
&'a self,
connection_id: &'a ConnectionId,
) -> BoxFuture<'a, SoapResult<Option<ConnectionContext<P>>>>
fn remove<'a>( &'a self, connection_id: &'a ConnectionId, ) -> BoxFuture<'a, SoapResult<Option<ConnectionContext<P>>>>
Removes and returns one connection, or
None when it is already absent.Source§fn connection<'a>(
&'a self,
connection_id: &'a ConnectionId,
) -> BoxFuture<'a, SoapResult<Option<ConnectionContext<P>>>>
fn connection<'a>( &'a self, connection_id: &'a ConnectionId, ) -> BoxFuture<'a, SoapResult<Option<ConnectionContext<P>>>>
Loads one active connection context.
Source§fn connections(&self) -> BoxFuture<'_, SoapResult<Vec<ConnectionContext<P>>>>
fn connections(&self) -> BoxFuture<'_, SoapResult<Vec<ConnectionContext<P>>>>
Lists all active contexts in ascending connection-identity order.
Source§fn principal_connections<'a>(
&'a self,
principal_id: &'a PrincipalId,
) -> BoxFuture<'a, SoapResult<Vec<ConnectionContext<P>>>>
fn principal_connections<'a>( &'a self, principal_id: &'a PrincipalId, ) -> BoxFuture<'a, SoapResult<Vec<ConnectionContext<P>>>>
Lists authenticated connections for one principal in ascending identity order.
Source§impl<P: Debug> Debug for MemoryConnectionPresence<P>
impl<P: Debug> Debug for MemoryConnectionPresence<P>
Auto Trait Implementations§
impl<P> !Freeze for MemoryConnectionPresence<P>
impl<P> RefUnwindSafe for MemoryConnectionPresence<P>
impl<P> Send for MemoryConnectionPresence<P>where
P: Send,
impl<P> Sync for MemoryConnectionPresence<P>
impl<P> Unpin for MemoryConnectionPresence<P>
impl<P> UnsafeUnpin for MemoryConnectionPresence<P>
impl<P> UnwindSafe for MemoryConnectionPresence<P>
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