#[non_exhaustive]pub enum ExtensionType {
HsReq,
HsRsp,
KmReq,
KmRsp,
Sid,
Congestion,
Filter,
Group,
Reserved(u16),
}Expand description
Handshake Extension Extension Type (draft-sharabayko-srt-01 §3.2.1,
Table 5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HsReq
1: SRT_CMD_HSREQ — Handshake Extension request (§3.2.1.1).
HsRsp
2: SRT_CMD_HSRSP — Handshake Extension response (§3.2.1.1).
KmReq
3: SRT_CMD_KMREQ — Key Material request (§3.2.1.2).
KmRsp
4: SRT_CMD_KMRSP — Key Material response (§3.2.1.2).
Sid
5: SRT_CMD_SID — Stream ID (§3.2.1.3).
Congestion
6: SRT_CMD_CONGESTION.
Filter
7: SRT_CMD_FILTER.
Group
8: SRT_CMD_GROUP — Group Membership (§3.2.1.4).
Reserved(u16)
A value Table 5 does not define.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionType
impl Clone for ExtensionType
Source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExtensionType
Source§impl Debug for ExtensionType
impl Debug for ExtensionType
Source§impl Display for ExtensionType
impl Display for ExtensionType
impl Eq for ExtensionType
Source§impl Hash for ExtensionType
impl Hash for ExtensionType
Source§impl PartialEq for ExtensionType
impl PartialEq for ExtensionType
Source§impl Serialize for ExtensionType
Available on crate feature serde only.
impl Serialize for ExtensionType
Available on crate feature
serde only.impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl Freeze for ExtensionType
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnsafeUnpin for ExtensionType
impl UnwindSafe for ExtensionType
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