pub struct ElideCursor {
pub last_forwarded_id: Option<u64>,
pub fixup_pending: bool,
}Expand description
The state an elide leaves behind on a subgroup stream.
Read it with ObjectFramer::elide_cursor. The framer owns this state
rather than the caller because it forwards objects the caller never
sees an ObjectMeta for — an object one byte over
FramerConfig::max_buffered_object_bytes leaves as
FramerOut::Passthrough, and a cursor kept outside the framer would
let its stale delta go out on the wire.
Fields§
§last_forwarded_id: Option<u64>Absolute Object ID of the last object actually forwarded, or None
when none has been.
fixup_pending: boolWhether the next object the framer emits will have its leading ID
field rewritten. Always false on drafts 07-13, where IDs are
absolute, and on fetch streams.
Trait Implementations§
Source§impl Clone for ElideCursor
impl Clone for ElideCursor
Source§fn clone(&self) -> ElideCursor
fn clone(&self) -> ElideCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ElideCursor
Source§impl Debug for ElideCursor
impl Debug for ElideCursor
impl Eq for ElideCursor
Source§impl PartialEq for ElideCursor
impl PartialEq for ElideCursor
impl StructuralPartialEq for ElideCursor
Auto Trait Implementations§
impl Freeze for ElideCursor
impl RefUnwindSafe for ElideCursor
impl Send for ElideCursor
impl Sync for ElideCursor
impl Unpin for ElideCursor
impl UnsafeUnpin for ElideCursor
impl UnwindSafe for ElideCursor
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