Struct Protocol

struct Protocol { ... }

Represents the :protocol pseudo-header used by the Extended CONNECT Protocol.

Implementations

impl Protocol

const fn from_static(value: &'static str) -> Self

Converts a static string to a protocol name.

fn as_str(self: &Self) -> &str

Returns a str representation of the header.

impl AsRef for Protocol

fn as_ref(self: &Self) -> &[u8]

impl Clone for Protocol

fn clone(self: &Self) -> Protocol

impl Debug for Protocol

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

impl Eq for Protocol

impl Freeze for Protocol

impl PartialEq for Protocol

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

impl RefUnwindSafe for Protocol

impl Send for Protocol

impl StructuralPartialEq for Protocol

impl Sync for Protocol

impl Unpin for Protocol

impl UnwindSafe for Protocol

impl<'a> From for Protocol

fn from(value: &'a str) -> Self

impl<Q, K> Equivalent for Protocol

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

impl<Q, K> Equivalent for Protocol

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

impl<T> Any for Protocol

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Protocol

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

impl<T> BorrowMut for Protocol

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

impl<T> CloneToUninit for Protocol

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

impl<T> From for Protocol

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Protocol

impl<T> ToOwned for Protocol

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

impl<T> WithSubscriber for Protocol

impl<T, U> Into for Protocol

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 Protocol

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

impl<T, U> TryInto for Protocol

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