Struct binate::frame::codec::KeepaliveFrame [−][src]
pub struct KeepaliveFrame { /* fields omitted */ }
This is supported on crate feature
frame
only.Expand description
The keepalive frame.
Frame Contents
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream ID = 0 |
+-----------+-+-+-+-------------+-------------------------------+
|Frame Type |0|0|R| Flags |
+-----------+-+-+-+-------------+-------------------------------+
|0| Last Received Position |
+ +
| |
+---------------------------------------------------------------+
Data
Implementations
KEEPALIVE frames MUST always use Stream ID 0 as they pertain to the Connection.
Create a new Keepalive
frame.
last_received_position
MUST be <=MAX_U63
.
Returns the last received position of this frame.
Returns true if this frame has the Respond flag set.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for KeepaliveFrame
impl Send for KeepaliveFrame
impl Sync for KeepaliveFrame
impl Unpin for KeepaliveFrame
impl UnwindSafe for KeepaliveFrame
Blanket Implementations
Mutably borrows from an owned value. Read more