Enum binate::frame::FrameType [−][src]
#[non_exhaustive] pub enum FrameType {}Show variants
SETUP, LEASE, KEEPALIVE, REQUEST_RESPONSE, REQUEST_FNF, REQUEST_STREAM, REQUEST_CHANNEL, REQUEST_N, CANCEL, PAYLOAD, ERROR, METADATA_PUSH, RESUME, RESUME_OK, EXT,
frame
only.Expand description
Type of frame.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Sent by client to initiate protocol processing.
Sent by Responder to grant the ability to send requests.
Connection keepalive.
Request single response.
A single one-way message.
Request a completable stream.
Request a completable stream in both directions.
Request N more items with Reactive Streams semantics.
Cancel outstanding request.
Payload on a stream. For example, response to a request, or message on a channel.
Error at connection or application level.
Asynchronous Metadata frame
Replaces SETUP for Resuming Operation (optional)
Sent in response to a RESUME if resuming operation possible (optional)
Used To Extend more frame types as well as extensions.
Implementations
Specify the frame type with the raw value described in the Frame Types
section of the
RSocket protocol spec. This will return None
if the given raw value is unrecognized.
Convert from underlying bit representation, if the bit representation contains a valid frame type.
In other words, the higher 6-bit of the given bit pattern will convert to a FrameType
.
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
+-----------+-+-+-+-+-----------+-------------------------------+
|Frame Type |I|M| Flags |
+-----------+-+-+-+-+-----------+-------------------------------+
Returns the corresponding raw value of this frame type. The raw value is described in the
Frame Types
section of the RSocket protocol spec.
Convert this frame type to a bit representation, with the higher 6-bit of the return value setting to the raw value of the frame type.
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
+-----------+-+-+-+-+-----------+-------------------------------+
|Frame Type |I|M| Flags |
+-----------+-+-+-+-+-----------+-------------------------------+
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FrameType
impl UnwindSafe for FrameType
Blanket Implementations
Mutably borrows from an owned value. Read more