pub struct Connect<'a> {
pub conn_id: &'a Arc<String>,
pub user_id: Option<&'a str>,
pub cookies: &'a str,
/* private fields */
}Expand description
A connection, as the application first hears of it. It may subscribe the
connection right away (subscribe, set_topic_acl).
Fields§
§conn_id: &'a Arc<String>The server’s id for the connection.
user_id: Option<&'a str>The user the server validated from the client’s token. None without
a JWT configuration: the application checks cookies itself, then
accepts the connection.
The cookies of the upgrade request.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Connect<'a>
impl<'a> !UnwindSafe for Connect<'a>
impl<'a> Forget for Connect<'a>
impl<'a> Freeze for Connect<'a>
impl<'a> Move for Connect<'a>
impl<'a> Send for Connect<'a>
impl<'a> Sync for Connect<'a>
impl<'a> Unpin for Connect<'a>
impl<'a> UnsafeUnpin for Connect<'a>
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