Struct binate::frame::codec::SetupFrame [−][src]
pub struct SetupFrame { /* fields omitted */ }
frame
only.Expand description
The setup frame.
The SETUP frame is sent by the client to inform the server of the parameters under which it desires to operate.
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|M|R|L| Flags |
+-----------+-+-+-+-+-----------+-------------------------------+
| Major Version | Minor Version |
+-------------------------------+-------------------------------+
|0| Time Between KEEPALIVE Frames |
+---------------------------------------------------------------+
|0| Max Lifetime |
+---------------------------------------------------------------+
| Token Length | Resume Identification Token ...
+---------------+-----------------------------------------------+
| MIME Length | Metadata Encoding MIME Type ...
+---------------+-----------------------------------------------+
| MIME Length | Data Encoding MIME Type ...
+---------------+-----------------------------------------------+
Metadata & Setup Payload
Implementations
Setup frames MUST always use Stream ID 0 as they pertain to the connection.
Returns a SetupFrameBuilder
.
Returns the time between KEEPALIVE frames that the client will send.
Returns the time that a client will allow a server to not respond to a KEEPALIVE before it is assumed to be dead.
Returns the resume identification token (not present if the RESUME bit is not set).
Returns the MIME type for encoding the medadata.
Note that this will always return None
if metadata MIME type is not an ASCII string.
Returns the MIME type for encoding the data.
Note that this will always return None
if metadata MIME type is not an ASCII string.
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 SetupFrame
impl Send for SetupFrame
impl Sync for SetupFrame
impl Unpin for SetupFrame
impl UnwindSafe for SetupFrame
Blanket Implementations
Mutably borrows from an owned value. Read more