pub struct SessionCursor {
pub node_pointer: String,
pub wait_reason: Option<String>,
pub outbox_marker: Option<String>,
}Expand description
Cursor pointing at a session’s position in a flow graph.
Fields§
§node_pointer: StringIdentifier of the node currently owning the session.
wait_reason: Option<String>Optional wait reason emitted by the node.
outbox_marker: Option<String>Optional marker describing pending outbox operations.
Implementations§
Source§impl SessionCursor
impl SessionCursor
Sourcepub fn new(node_pointer: impl Into<String>) -> Self
pub fn new(node_pointer: impl Into<String>) -> Self
Creates a new cursor pointing at the provided node identifier.
Sourcepub fn with_wait_reason(self, reason: impl Into<String>) -> Self
pub fn with_wait_reason(self, reason: impl Into<String>) -> Self
Assigns a wait reason to the cursor.
Sourcepub fn with_outbox_marker(self, marker: impl Into<String>) -> Self
pub fn with_outbox_marker(self, marker: impl Into<String>) -> Self
Assigns an outbox marker to the cursor.
Trait Implementations§
Source§impl Clone for SessionCursor
impl Clone for SessionCursor
Source§fn clone(&self) -> SessionCursor
fn clone(&self) -> SessionCursor
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionCursor
impl Debug for SessionCursor
Source§impl<'de> Deserialize<'de> for SessionCursor
impl<'de> Deserialize<'de> for SessionCursor
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 SessionCursor
impl Hash for SessionCursor
Source§impl PartialEq for SessionCursor
impl PartialEq for SessionCursor
Source§impl Serialize for SessionCursor
impl Serialize for SessionCursor
impl Eq for SessionCursor
impl StructuralPartialEq for SessionCursor
Auto Trait Implementations§
impl Freeze for SessionCursor
impl RefUnwindSafe for SessionCursor
impl Send for SessionCursor
impl Sync for SessionCursor
impl Unpin for SessionCursor
impl UnwindSafe for SessionCursor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.