pub struct StreamCursor {
pub chunk_sequence: u64,
pub byte_offset: u64,
pub precision: StreamCursorPrecision,
pub label: Option<String>,
}Expand description
Carries the stream cursor record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§chunk_sequence: u64Chunk sequence used by this record or request.
byte_offset: u64Byte size or byte limit for byte offset. Use it to enforce bounded reads, writes, summaries, or parser output.
precision: StreamCursorPrecisionPrecision used by this record or request.
label: Option<String>Optional label value. When absent, callers should use the documented default or skip that optional behavior.
Implementations§
Source§impl StreamCursor
impl StreamCursor
Sourcepub fn chunk(chunk_sequence: u64) -> Self
pub fn chunk(chunk_sequence: u64) -> Self
Builds the chunk value with the documented defaults. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for StreamCursor
impl Clone for StreamCursor
Source§fn clone(&self) -> StreamCursor
fn clone(&self) -> StreamCursor
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 moreSource§impl Debug for StreamCursor
impl Debug for StreamCursor
Source§impl<'de> Deserialize<'de> for StreamCursor
impl<'de> Deserialize<'de> for StreamCursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StreamCursor
impl Hash for StreamCursor
Source§impl Ord for StreamCursor
impl Ord for StreamCursor
Source§fn cmp(&self, other: &StreamCursor) -> Ordering
fn cmp(&self, other: &StreamCursor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamCursor
impl PartialEq for StreamCursor
Source§fn eq(&self, other: &StreamCursor) -> bool
fn eq(&self, other: &StreamCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StreamCursor
impl PartialOrd for StreamCursor
Source§impl Serialize for StreamCursor
impl Serialize for StreamCursor
impl Eq for StreamCursor
impl StructuralPartialEq for StreamCursor
Auto Trait Implementations§
impl Freeze for StreamCursor
impl RefUnwindSafe for StreamCursor
impl Send for StreamCursor
impl Sync for StreamCursor
impl Unpin for StreamCursor
impl UnsafeUnpin for StreamCursor
impl UnwindSafe for StreamCursor
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