pub struct CursorHeader {
pub report_id: u64,
}Expand description
CURSOR head frame (kind 6).
One key, required: which report this stream carries. The stream then
carries (level, offset) records until FIN and never any payload
(decisions/0024
§4.4) — which is why the head frame needs no length, no endpoint and no
correlation beyond the id the DATA header allocated.
Fields§
§report_id: u64The report_id of the DATA header that ordered this report.
Implementations§
Source§impl CursorHeader
impl CursorHeader
Sourcepub fn encode_into(&self, out: &mut Vec<u8>)
pub fn encode_into(&self, out: &mut Vec<u8>)
Appends the encoded header to out, for a send path that reuses a
buffer (B-250). The canonical form has one implementation and this is
it; Self::encode is a wrapper.
Sourcepub fn decode(bytes: &[u8]) -> Result<CursorHeader, HeaderError>
pub fn decode(bytes: &[u8]) -> Result<CursorHeader, HeaderError>
Decodes the header.
Trait Implementations§
Source§impl Clone for CursorHeader
impl Clone for CursorHeader
impl Copy for CursorHeader
Source§impl Debug for CursorHeader
impl Debug for CursorHeader
impl Eq for CursorHeader
Source§impl PartialEq for CursorHeader
impl PartialEq for CursorHeader
impl StructuralPartialEq for CursorHeader
Auto Trait Implementations§
impl Freeze for CursorHeader
impl RefUnwindSafe for CursorHeader
impl Send for CursorHeader
impl Sync for CursorHeader
impl Unpin for CursorHeader
impl UnsafeUnpin for CursorHeader
impl UnwindSafe for CursorHeader
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