Struct SenderRuntime
pub struct SenderRuntime { /* private fields */ }Implementations§
§impl SenderRuntime
impl SenderRuntime
pub fn install(
state: CurrentPrivateState,
caller: SenderCaller,
) -> Result<SenderRuntime, InstallRefusal>
pub fn install( state: CurrentPrivateState, caller: SenderCaller, ) -> Result<SenderRuntime, InstallRefusal>
Install over the host’s selected, hydrated private state. The state’s instance is preserved; no empty or replacement outbox is created here.
pub fn drive(&mut self) -> Result<(), SenderError>
pub fn drive(&mut self) -> Result<(), SenderError>
Resume one retained physical barrier after a storage failure.
pub fn begin_step(
&mut self,
parent: &mut dyn ParentOwner,
step: ParentStep,
intent: &ChildIntent,
) -> Result<StepStart, SenderError>
pub fn begin_step( &mut self, parent: &mut dyn ParentOwner, step: ParentStep, intent: &ChildIntent, ) -> Result<StepStart, SenderError>
Obtain the step’s one child. Existing mappings return their original ticket; a different intent for the same step is refused. A fresh child is committed to the outbox and mapped by the parent before return.
pub fn attempt(
&mut self,
parent: &dyn ParentOwner,
step: ParentStep,
kind: AttemptKind,
confirmation: &str,
deadline: Instant,
) -> Result<ManagedAttempt, SenderError>
pub fn attempt( &mut self, parent: &dyn ParentOwner, step: ParentStep, kind: AttemptKind, confirmation: &str, deadline: Instant, ) -> Result<ManagedAttempt, SenderError>
One attempt for the step’s mapped original child. Invoke resubmits the original UUID and request; the receiver’s durable dedup decides effect.
pub fn accept(
&mut self,
result: ManagedAttemptResult,
) -> Result<Reply, AcceptRefusal>
pub fn accept( &mut self, result: ManagedAttemptResult, ) -> Result<Reply, AcceptRefusal>
Retain one correlated result. Only Retained changed durable state.
pub fn settle(
&mut self,
parent: &mut dyn ParentOwner,
step: ParentStep,
continuation: &mut dyn FnMut(ParentStep, &str) -> Result<Vec<u8>, String>,
) -> Result<ParentReceipt, SenderError>
pub fn settle( &mut self, parent: &mut dyn ParentOwner, step: ParentStep, continuation: &mut dyn FnMut(ParentStep, &str) -> Result<Vec<u8>, String>, ) -> Result<ParentReceipt, SenderError>
Commit the exact terminal result and continuation in the parent, then release the child row. Repeats after any crash reach the same receipt.
pub fn recover(
&mut self,
parent: &mut dyn ParentOwner,
continuation: &mut dyn FnMut(ParentStep, &str) -> Result<Vec<u8>, String>,
) -> Result<Recovery, SenderError>
pub fn recover( &mut self, parent: &mut dyn ParentOwner, continuation: &mut dyn FnMut(ParentStep, &str) -> Result<Vec<u8>, String>, ) -> Result<Recovery, SenderError>
Reconcile every retained row of this caller with its parent owner. Certain terminal children are settled; everything else stays retained.
Auto Trait Implementations§
impl Freeze for SenderRuntime
impl !RefUnwindSafe for SenderRuntime
impl !Send for SenderRuntime
impl !Sync for SenderRuntime
impl Unpin for SenderRuntime
impl UnsafeUnpin for SenderRuntime
impl !UnwindSafe for SenderRuntime
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more