Struct CloseFrame
pub struct CloseFrame { pub code: CloseCode, pub reason: Utf8Bytes }
A struct representing the close command.
Fields
code: CloseCodeThe reason as a code.
reason: Utf8BytesThe reason as text string.
Trait Implementations
impl Clone for CloseFrame
fn clone(&self) -> CloseFrame
impl Debug for CloseFrame
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for CloseFrame
impl PartialEq for CloseFrame
fn eq(&self, other: &CloseFrame) -> bool
impl StructuralPartialEq for CloseFrame
Auto Trait Implementations
impl !Freeze for CloseFrame
impl RefUnwindSafe for CloseFrame
impl Send for CloseFrame
impl Sync for CloseFrame
impl Unpin for CloseFrame
impl UnsafeUnpin for CloseFrame
impl UnwindSafe for CloseFrame
Blanket Implementations
impl<Q, K> Equivalent<K> for CloseFrame
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<Q, K> Equivalent<K> for CloseFrame
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for CloseFrame
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for CloseFrame
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for CloseFrame
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CloseFrame
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CloseFrame
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CloseFrame
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CloseFrame
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FromRef<T> for CloseFrame
where
T: Clone,
fn from_ref(input: &T) -> T
impl<T> Instrument for CloseFrame
impl<T> Read<Exclusive, BecauseExclusive> for CloseFrame
where
T: ?Sized,
impl<T> Same for CloseFrame
type Output = T;
impl<T> ToOwned for CloseFrame
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for CloseFrame
impl<T, U> Into<U> for CloseFrame
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CloseFrame
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CloseFrame
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for CloseFrame
where
V: MultiLane<T>,
fn vzip(self) -> V