Enum tquic_tools::ApplicationProto
source · pub enum ApplicationProto {
Interop,
Http09,
H3,
}
Expand description
Supported application protocols.
Variants§
Interop
Proto for QUIC interop, see https://github.com/quic-interop/quic-interop-runner
Http09
HTTP/0.9, see https://http.dev/0.9
H3
HTTP/3, see https://www.rfc-editor.org/rfc/rfc9114.html
Implementations§
source§impl ApplicationProto
impl ApplicationProto
sourcepub fn from_slice(proto: &[u8]) -> Self
pub fn from_slice(proto: &[u8]) -> Self
Create a new ApplicationProto from byte slice.
sourcepub fn convert_to_vec(protos: &[Self]) -> Vec<Vec<u8>>
pub fn convert_to_vec(protos: &[Self]) -> Vec<Vec<u8>>
Convert an ApplicationProto slice to a two-dimension byte vector.
Trait Implementations§
source§impl Clone for ApplicationProto
impl Clone for ApplicationProto
source§fn clone(&self) -> ApplicationProto
fn clone(&self) -> ApplicationProto
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 Debug for ApplicationProto
impl Debug for ApplicationProto
source§impl Default for ApplicationProto
impl Default for ApplicationProto
source§fn default() -> ApplicationProto
fn default() -> ApplicationProto
Returns the “default value” for a type. Read more
source§impl PartialEq for ApplicationProto
impl PartialEq for ApplicationProto
source§impl ValueEnum for ApplicationProto
impl ValueEnum for ApplicationProto
impl Copy for ApplicationProto
impl StructuralPartialEq for ApplicationProto
Auto Trait Implementations§
impl Freeze for ApplicationProto
impl RefUnwindSafe for ApplicationProto
impl Send for ApplicationProto
impl Sync for ApplicationProto
impl Unpin for ApplicationProto
impl UnwindSafe for ApplicationProto
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)