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 TurnScopewhere
Mutex<Option<Value>>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl Send for TurnScope
impl Sync for TurnScope
impl Unpin for TurnScope
impl UnsafeUnpin for TurnScopewhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const ArcInner<SpendNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpendNode>>: UnsafeUnpin,
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