pub struct EventLogTailResult {
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 EventLogTailResult
impl Clone for EventLogTailResult
Source§fn clone(&self) -> EventLogTailResult
fn clone(&self) -> EventLogTailResult
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 EventLogTailResult
impl Debug for EventLogTailResult
Source§impl Default for EventLogTailResult
impl Default for EventLogTailResult
Source§fn default() -> EventLogTailResult
fn default() -> EventLogTailResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventLogTailResult
impl<'de> Deserialize<'de> for EventLogTailResult
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 EventLogTailResult
impl RefUnwindSafe for EventLogTailResult
impl Send for EventLogTailResult
impl Sync for EventLogTailResult
impl Unpin for EventLogTailResult
impl UnsafeUnpin for EventLogTailResult
impl UnwindSafe for EventLogTailResult
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