pub struct MemoryChannelMembership { /* private fields */ }Expand description
Thread-safe bidirectional channel membership.
Implementations§
Trait Implementations§
Source§impl ChannelMembership for MemoryChannelMembership
impl ChannelMembership for MemoryChannelMembership
Source§fn join<'a>(
&'a self,
connection_id: &'a ConnectionId,
channel_id: &'a ChannelId,
) -> BoxFuture<'a, SoapResult<JoinOutcome>>
fn join<'a>( &'a self, connection_id: &'a ConnectionId, channel_id: &'a ChannelId, ) -> BoxFuture<'a, SoapResult<JoinOutcome>>
Adds one connection to one channel idempotently.
Source§fn leave<'a>(
&'a self,
connection_id: &'a ConnectionId,
channel_id: &'a ChannelId,
) -> BoxFuture<'a, SoapResult<LeaveOutcome>>
fn leave<'a>( &'a self, connection_id: &'a ConnectionId, channel_id: &'a ChannelId, ) -> BoxFuture<'a, SoapResult<LeaveOutcome>>
Removes one connection from one channel idempotently.
Source§fn members<'a>(
&'a self,
channel_id: &'a ChannelId,
) -> BoxFuture<'a, SoapResult<Vec<ConnectionId>>>
fn members<'a>( &'a self, channel_id: &'a ChannelId, ) -> BoxFuture<'a, SoapResult<Vec<ConnectionId>>>
Lists channel members in ascending connection-identity order.
Source§fn channels<'a>(
&'a self,
connection_id: &'a ConnectionId,
) -> BoxFuture<'a, SoapResult<Vec<ChannelId>>>
fn channels<'a>( &'a self, connection_id: &'a ConnectionId, ) -> BoxFuture<'a, SoapResult<Vec<ChannelId>>>
Lists memberships in ascending channel-identity order.
Source§fn remove_connection<'a>(
&'a self,
connection_id: &'a ConnectionId,
) -> BoxFuture<'a, SoapResult<Vec<ChannelId>>>
fn remove_connection<'a>( &'a self, connection_id: &'a ConnectionId, ) -> BoxFuture<'a, SoapResult<Vec<ChannelId>>>
Removes every membership for a disconnected connection. Read more
Source§impl Debug for MemoryChannelMembership
impl Debug for MemoryChannelMembership
Source§impl Default for MemoryChannelMembership
impl Default for MemoryChannelMembership
Source§fn default() -> MemoryChannelMembership
fn default() -> MemoryChannelMembership
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryChannelMembership
impl RefUnwindSafe for MemoryChannelMembership
impl Send for MemoryChannelMembership
impl Sync for MemoryChannelMembership
impl Unpin for MemoryChannelMembership
impl UnsafeUnpin for MemoryChannelMembership
impl UnwindSafe for MemoryChannelMembership
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