Struct CloseFrame

struct CloseFrame { ... }

A struct representing the close command.

Fields

code: CloseCode

The reason as a code.

reason: Utf8Bytes

The reason as text string.

Implementations

impl Clone for CloseFrame

fn clone(self: &Self) -> CloseFrame

impl Debug for CloseFrame

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for CloseFrame

impl Freeze for CloseFrame

impl PartialEq for CloseFrame

fn eq(self: &Self, other: &CloseFrame) -> bool

impl RefUnwindSafe for CloseFrame

impl Send for CloseFrame

impl StructuralPartialEq for CloseFrame

impl Sync for CloseFrame

impl Unpin for CloseFrame

impl UnwindSafe for CloseFrame

impl<Q, K> Equivalent for CloseFrame

fn equivalent(self: &Self, key: &K) -> bool

impl<Q, K> Equivalent for CloseFrame

fn equivalent(self: &Self, key: &K) -> bool

impl<T> Any for CloseFrame

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CloseFrame

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for CloseFrame

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for CloseFrame

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for CloseFrame

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for CloseFrame

fn from_ref(input: &T) -> T

impl<T> Instrument for CloseFrame

impl<T> Same for CloseFrame

impl<T> ToOwned for CloseFrame

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for CloseFrame

impl<T, U> Into for CloseFrame

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for CloseFrame

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for CloseFrame

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for CloseFrame

fn vzip(self: Self) -> V