pub struct JoinScope(/* private fields */);Expand description
Block scope id, baked per joined sql step and compared at join time.
The id is opaque: the loader assigns one per transacted block, bakes it
into every joined step of that block, and the segment uses the same id when
it installs the BlockSession. A step whose baked id differs from the
running block’s id is a super::TransactionError::JoinScopeMismatch.
Implementations§
Source§impl JoinScope
impl JoinScope
Sourcepub async fn set<F: Future>(self, fut: F) -> F::Output
pub async fn set<F: Future>(self, fut: F) -> F::Output
Install self as JOIN_SCOPE for the task that polls fut.
Used by a joined sql step to bake its load-time scope for work it
spawns, and by tests; the runtime segment installs BLOCK_SESSION,
not this cell.
Trait Implementations§
impl Copy for JoinScope
impl Eq for JoinScope
impl StructuralPartialEq for JoinScope
Auto Trait Implementations§
impl Forget for JoinScope
impl Freeze for JoinScope
impl Move for JoinScope
impl RefUnwindSafe for JoinScope
impl Send for JoinScope
impl Sync for JoinScope
impl Unpin for JoinScope
impl UnsafeUnpin for JoinScope
impl UnwindSafe for JoinScope
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