pub struct CloseCode(/* private fields */);Expand description
RFC 6455 close status codes used by the Phoenix WebSocket facade.
Implementations§
Source§impl CloseCode
impl CloseCode
pub const NORMAL: Self
pub const AWAY: Self
pub const PROTOCOL: Self
pub const UNSUPPORTED: Self
pub const ABNORMAL: Self
pub const INVALID_PAYLOAD: Self
pub const POLICY: Self
pub const MESSAGE_TOO_BIG: Self
pub const MANDATORY_EXT: Self
pub const INTERNAL: Self
pub const fn new(code: u16) -> Self
pub const fn get(self) -> u16
Trait Implementations§
impl Copy for CloseCode
impl Eq for CloseCode
Source§impl From<CloseCode> for CloseCode
impl From<CloseCode> for CloseCode
Source§fn from(value: TungsteniteCloseCode) -> Self
fn from(value: TungsteniteCloseCode) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for CloseCode
Auto Trait Implementations§
impl Freeze for CloseCode
impl RefUnwindSafe for CloseCode
impl Send for CloseCode
impl Sync for CloseCode
impl Unpin for CloseCode
impl UnsafeUnpin for CloseCode
impl UnwindSafe for CloseCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.