pub struct ContinuationContext { /* private fields */ }Expand description
Immutable continuation context: original input plus required tool turns.
Implementations§
Source§impl ContinuationContext
impl ContinuationContext
Sourcepub fn try_new(messages: Vec<CanonicalMessage>) -> Result<Self, EncodingError>
pub fn try_new(messages: Vec<CanonicalMessage>) -> Result<Self, EncodingError>
Construct from a mechanical message sequence (caller/runtime-built).
Sourcepub fn messages(&self) -> &[CanonicalMessage]
pub fn messages(&self) -> &[CanonicalMessage]
Borrow messages.
Trait Implementations§
Source§impl Clone for ContinuationContext
impl Clone for ContinuationContext
Source§fn clone(&self) -> ContinuationContext
fn clone(&self) -> ContinuationContext
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 ContinuationContext
impl Debug for ContinuationContext
Source§impl PartialEq for ContinuationContext
impl PartialEq for ContinuationContext
impl StructuralPartialEq for ContinuationContext
Auto Trait Implementations§
impl Freeze for ContinuationContext
impl RefUnwindSafe for ContinuationContext
impl Send for ContinuationContext
impl Sync for ContinuationContext
impl Unpin for ContinuationContext
impl UnsafeUnpin for ContinuationContext
impl UnwindSafe for ContinuationContext
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