pub struct SessionExecutionReservation { /* private fields */ }Expand description
One exact runner reservation plus its logical-session activation ownership.
Callers must obtain this through reserve_session_execution. The only
exception is the router’s own activation launcher, which uses the
crate-private placeholder constructor while assembling its two-phase launch.
Implementations§
Source§impl SessionExecutionReservation
impl SessionExecutionReservation
pub fn session_id(&self) -> &str
pub fn run_id(&self) -> &str
pub fn cancel_token(&self) -> &CancellationToken
Sourcepub async fn ensure_registered(
&mut self,
) -> Result<(), SessionRunRegistrationError>
pub async fn ensure_registered( &mut self, ) -> Result<(), SessionRunRegistrationError>
Adopt a router-published activation placeholder before any adapter-side tool replay, workspace mutation, persistence, relay, or spawned task.
Reservations returned by reserve_session_execution are already
registered, so calling this on the normal manual/server path is a no-op.
Trait Implementations§
Source§impl Drop for SessionExecutionReservation
impl Drop for SessionExecutionReservation
Auto Trait Implementations§
impl !RefUnwindSafe for SessionExecutionReservation
impl !Sync for SessionExecutionReservation
impl !UnwindSafe for SessionExecutionReservation
impl Freeze for SessionExecutionReservation
impl Send for SessionExecutionReservation
impl Unpin for SessionExecutionReservation
impl UnsafeUnpin for SessionExecutionReservation
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