Struct fire_http::ws::CloseFrame
Available on crate feature
ws only.Expand description
A struct representing the close command.
Fields
code: CloseCodeThe reason as a code.
reason: Cow<'t, str>The reason as text string.
Implementations
impl<'t> CloseFrame<'t>
impl<'t> CloseFrame<'t>
pub fn into_owned(self) -> CloseFrame<'static>
pub fn into_owned(self) -> CloseFrame<'static>
Convert into a owned string.
Trait Implementations
impl<'t> Clone for CloseFrame<'t>
impl<'t> Clone for CloseFrame<'t>
fn clone(&self) -> CloseFrame<'t>
fn clone(&self) -> CloseFrame<'t>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'t> Debug for CloseFrame<'t>
impl<'t> Debug for CloseFrame<'t>
impl<'t> Display for CloseFrame<'t>
impl<'t> Display for CloseFrame<'t>
impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
fn eq(&self, other: &CloseFrame<'t>) -> bool
fn eq(&self, other: &CloseFrame<'t>) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.