pub struct WebsocketAuthToken(pub Option<String>);Expand description
A resource which defines an authentication token. When present with a Some value, connections must provide this token in the Authorization header.
Tuple Fields§
§0: Option<String>Implementations§
Source§impl WebsocketAuthToken
impl WebsocketAuthToken
pub fn unauthenticated() -> Self
Trait Implementations§
Source§impl Clone for WebsocketAuthToken
impl Clone for WebsocketAuthToken
Source§fn clone(&self) -> WebsocketAuthToken
fn clone(&self) -> WebsocketAuthToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebsocketAuthToken
impl Debug for WebsocketAuthToken
Source§impl From<&str> for WebsocketAuthToken
impl From<&str> for WebsocketAuthToken
Source§impl From<String> for WebsocketAuthToken
impl From<String> for WebsocketAuthToken
Source§impl Storage for WebsocketAuthToken
impl Storage for WebsocketAuthToken
impl Resource<WebsocketConnectionBus> for WebsocketAuthToken
impl Resource<WebsocketListenerBus> for WebsocketAuthToken
Auto Trait Implementations§
impl Freeze for WebsocketAuthToken
impl RefUnwindSafe for WebsocketAuthToken
impl Send for WebsocketAuthToken
impl Sync for WebsocketAuthToken
impl Unpin for WebsocketAuthToken
impl UnwindSafe for WebsocketAuthToken
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