pub struct TurnScope {
pub origin: TurnOrigin,
/* private fields */
}Expand description
What belongs to the one turn a call is made in, and ends with it.
Fields§
§origin: TurnOriginWho started the turn, which decides what goal operations it may perform.
Implementations§
Source§impl TurnScope
impl TurnScope
pub fn new(origin: TurnOrigin) -> Self
Sourcepub fn opening(origin: TurnOrigin, spend: Arc<SpendNode>) -> Self
pub fn opening(origin: TurnOrigin, spend: Arc<SpendNode>) -> Self
A turn whose calls spend into spend.
pub fn spend(&self) -> &Arc<SpendNode> ⓘ
pub fn set_structured_output(&self, value: Value)
pub fn take_structured_output(&self) -> Option<Value>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TurnScope
impl Forget for TurnScope
impl Move for TurnScope
impl RefUnwindSafe for TurnScope
impl Send for TurnScope
impl Sync for TurnScope
impl Unpin for TurnScope
impl UnsafeUnpin for TurnScope
impl UnwindSafe for TurnScope
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