#[repr(u8)]pub enum Type {
Data = 0,
WindowUpdate = 1,
Ping = 2,
GoAway = 3,
}Expand description
The type field is used to switch the frame message type. The following message types are supported:
Variants§
Data = 0
Used to transmit data. May transmit zero length payloads depending on the flags.
WindowUpdate = 1
Used to updated the senders receive window size. This is used to implement per-session flow control.
Ping = 2
Used to measure RTT. It can also be used to heart-beat and do keep-alives over TCP.
GoAway = 3
Used to close a session.
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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