pub struct ClientConnection {
pub connection_id: String,
pub tenant_id: TenantId,
pub session_id: String,
pub sender: Sender<Message>,
}Expand description
Models an active client WebSocket connection.
Fields§
§connection_id: StringUnique identifier for this connection instance.
tenant_id: TenantIdTenant boundary.
session_id: StringSession identifier if authenticated.
sender: Sender<Message>Channel sender to push frames onto the client’s writer loop.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConnection
impl Clone for ClientConnection
Source§fn clone(&self) -> ClientConnection
fn clone(&self) -> ClientConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientConnection
impl RefUnwindSafe for ClientConnection
impl Send for ClientConnection
impl Sync for ClientConnection
impl Unpin for ClientConnection
impl UnsafeUnpin for ClientConnection
impl UnwindSafe for ClientConnection
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