pub struct SessionEventLogTailResult {
pub cursor: String,
}Expand description
Snapshot of the current tail cursor without returning any events. Use this when a consumer wants to subscribe to live events going forward without first paginating through the entire persisted history (which would happen if read were called without a cursor on a long-lived session).
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§cursor: StringOpaque cursor pointing at the current tail of the session’s persisted-events history. Pass back to read to receive only events that arrive AFTER this snapshot. When the session has no events, this returns the same sentinel as an unset cursor (i.e. equivalent to omitting the cursor on a first read).
Trait Implementations§
Source§impl Clone for SessionEventLogTailResult
impl Clone for SessionEventLogTailResult
Source§fn clone(&self) -> SessionEventLogTailResult
fn clone(&self) -> SessionEventLogTailResult
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 SessionEventLogTailResult
impl Debug for SessionEventLogTailResult
Source§impl Default for SessionEventLogTailResult
impl Default for SessionEventLogTailResult
Source§fn default() -> SessionEventLogTailResult
fn default() -> SessionEventLogTailResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionEventLogTailResult
impl<'de> Deserialize<'de> for SessionEventLogTailResult
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
Auto Trait Implementations§
impl Freeze for SessionEventLogTailResult
impl RefUnwindSafe for SessionEventLogTailResult
impl Send for SessionEventLogTailResult
impl Sync for SessionEventLogTailResult
impl Unpin for SessionEventLogTailResult
impl UnsafeUnpin for SessionEventLogTailResult
impl UnwindSafe for SessionEventLogTailResult
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