pub struct AuthResult {
pub user_id: Option<String>,
pub queued: bool,
pub auth: Option<String>,
}Expand description
What WebSocket::auth did.
Fields§
§user_id: Option<String>From the authenticated acknowledgement; None when queued.
queued: boolTrue when not connected: the token is kept and sent (and acknowledged) on connect.
auth: Option<String>How the connection is authenticated ("api_key" or "session"), when the server says.
Trait Implementations§
Source§impl Clone for AuthResult
impl Clone for AuthResult
Source§impl Debug for AuthResult
impl Debug for AuthResult
Source§impl Default for AuthResult
impl Default for AuthResult
impl Eq for AuthResult
Source§impl PartialEq for AuthResult
impl PartialEq for AuthResult
impl StructuralPartialEq for AuthResult
Auto Trait Implementations§
impl Freeze for AuthResult
impl RefUnwindSafe for AuthResult
impl Send for AuthResult
impl Sync for AuthResult
impl Unpin for AuthResult
impl UnsafeUnpin for AuthResult
impl UnwindSafe for AuthResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.