Struct binate::frame::codec::PayloadFrame [−][src]
pub struct PayloadFrame { /* fields omitted */ }
This is supported on crate feature
frame
only.Expand description
The payload 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 |
+-----------+-+-+-+-+-+---------+-------------------------------+
|Frame Type |0|M|F|C|N| Flags |
+-------------------------------+-------------------------------+
Metadata & Data
Implementations
Create a new Payload
frame.
stream_id
MUST be <=MAX_U31
.- flag
follows
means more fragments follow this fragment. - flag
complete
indicates stream completion. If set,on_complete()
will be invoked on Subscriber/Observer. - flag
next
indicates Next (Payload Data and/or Metadata present). If set,on_next(Payload)
will be invoked on Subscriber/Observer.
A PAYLOAD MUST NOT have both (C)complete and (N)ext empty (false). See Payload Frame
section in the spec for more details.
Returns true if this frame has the FOLLOWS flag set.
Returns true if this frame has the COMPLETE 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 PayloadFrame
impl Send for PayloadFrame
impl Sync for PayloadFrame
impl Unpin for PayloadFrame
impl UnwindSafe for PayloadFrame
Blanket Implementations
Mutably borrows from an owned value. Read more