#[non_exhaustive]pub enum Framing {
Rfc4571,
Turn,
Raw,
}Expand description
How messages are delimited on a connection.
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.
Rfc4571
RFC 4571: a two-byte length before each message (ICE-TCP, RFC 6544 section 3).
Turn
TURN over TCP / TLS (RFC 8656 section 12.5): STUN and ChannelData messages back to back, each delimited by its own header.
Raw
None: bytes go out as they are given and come back in the pieces the socket reads. A TURN-TCP data connection (RFC 6062 section 4.5), whose ConnectionBind exchange and then the peer’s stream its user delimits itself.
Implementations§
Trait Implementations§
impl Copy for Framing
impl Eq for Framing
impl StructuralPartialEq for Framing
Auto Trait Implementations§
impl Forget for Framing
impl Freeze for Framing
impl Move for Framing
impl RefUnwindSafe for Framing
impl Send for Framing
impl Sync for Framing
impl Unpin for Framing
impl UnsafeUnpin for Framing
impl UnwindSafe for Framing
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