Struct axum::extract::ws::CloseFrame
source · Available on crate feature
ws
only.Expand description
A struct representing the close command.
Fields§
§code: CloseCode
The reason as a code.
reason: Cow<'t, str>
The reason as text string.
Trait Implementations§
source§impl<'t> Clone for CloseFrame<'t>
impl<'t> Clone for CloseFrame<'t>
source§fn clone(&self) -> CloseFrame<'t>
fn clone(&self) -> CloseFrame<'t>
Returns a copy 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<'t> Debug for CloseFrame<'t>
impl<'t> Debug for CloseFrame<'t>
source§impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
source§fn eq(&self, other: &CloseFrame<'t>) -> bool
fn eq(&self, other: &CloseFrame<'t>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'t> Eq for CloseFrame<'t>
impl<'t> StructuralEq for CloseFrame<'t>
impl<'t> StructuralPartialEq for CloseFrame<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for CloseFrame<'t>
impl<'t> Send for CloseFrame<'t>
impl<'t> Sync for CloseFrame<'t>
impl<'t> Unpin for CloseFrame<'t>
impl<'t> UnwindSafe for CloseFrame<'t>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.