pub struct AlpnProtocolId {
pub ident: AlpnType,
pub ident_seq: &'static [u8],
pub ident_str: &'static str,
pub descr: &'static str,
}Expand description
A structure which describes the ALPNs.
Fields§
§ident: AlpnType§ident_seq: &'static [u8]§ident_str: &'static str§descr: &'static strImplementations§
Source§impl AlpnProtocolId
impl AlpnProtocolId
Sourcepub fn get_by_alpn_type(altp: AlpnType) -> &'static AlpnProtocolId
pub fn get_by_alpn_type(altp: AlpnType) -> &'static AlpnProtocolId
Returns the static reference to Alpn protocol ID record.
Sourcepub fn get_by_ident_str(ident: &str) -> Option<&'static AlpnProtocolId>
pub fn get_by_ident_str(ident: &str) -> Option<&'static AlpnProtocolId>
Returns the statuc reference to Apln protocol ID record by the string identification i.e http/1.0
Sourcepub fn get_by_ident_seq(ident: &[u8]) -> Option<&'static AlpnProtocolId>
pub fn get_by_ident_seq(ident: &[u8]) -> Option<&'static AlpnProtocolId>
Returns the statuc reference to Apln protocol ID record by the string identification i.e b“\x68\x32\x63“ -> h2c
Trait Implementations§
Source§impl Clone for AlpnProtocolId
impl Clone for AlpnProtocolId
Source§fn clone(&self) -> AlpnProtocolId
fn clone(&self) -> AlpnProtocolId
Returns a duplicate 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 AlpnProtocolId
impl Debug for AlpnProtocolId
Source§impl PartialEq for AlpnProtocolId
impl PartialEq for AlpnProtocolId
impl Eq for AlpnProtocolId
impl StructuralPartialEq for AlpnProtocolId
Auto Trait Implementations§
impl Freeze for AlpnProtocolId
impl RefUnwindSafe for AlpnProtocolId
impl Send for AlpnProtocolId
impl Sync for AlpnProtocolId
impl Unpin for AlpnProtocolId
impl UnwindSafe for AlpnProtocolId
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