pub struct PartitionCommunicationAuthority { /* private fields */ }Expand description
Cloneable bounded-completion and poison authority for one selected communication session.
Backend-owned operations adjacent to the neutral partition driver must retain this authority instead of a bare native group. Every clone observes the first terminal communication failure and fails before later submission.
Implementations§
Source§impl PartitionCommunicationAuthority
impl PartitionCommunicationAuthority
Sourcepub fn from_manifest(
manifest: &CommunicationManifest,
) -> Result<Self, PartitionExecutionError>
pub fn from_manifest( manifest: &CommunicationManifest, ) -> Result<Self, PartitionExecutionError>
Creates the poison and bounded-completion authority selected by one manifest.
Sourcepub fn ensure_active(&self) -> Result<(), PartitionExecutionError>
pub fn ensure_active(&self) -> Result<(), PartitionExecutionError>
Rejects work after any submission, completion, cancellation, or deadline failure.
Sourcepub const fn completion_policy(&self) -> Option<CommunicationCompletionPolicy>
pub const fn completion_policy(&self) -> Option<CommunicationCompletionPolicy>
Returns the bounded completion policy selected by the communication manifest.
Sourcepub fn submission_error(
&self,
error: impl Display,
operation: CommunicationOperation,
phase: DistributedExecutionPhase,
route: Option<CommunicationRouteId>,
) -> PartitionExecutionError
pub fn submission_error( &self, error: impl Display, operation: CommunicationOperation, phase: DistributedExecutionPhase, route: Option<CommunicationRouteId>, ) -> PartitionExecutionError
Records a native submission failure after preflight admission succeeded.
Sourcepub fn completion_error(
&self,
error: impl Display,
operation: CommunicationOperation,
phase: DistributedExecutionPhase,
route: Option<CommunicationRouteId>,
) -> PartitionExecutionError
pub fn completion_error( &self, error: impl Display, operation: CommunicationOperation, phase: DistributedExecutionPhase, route: Option<CommunicationRouteId>, ) -> PartitionExecutionError
Records an exact native completion failure in the shared poison domain.
Sourcepub fn wait<T, C>(
&self,
submission: Submission<T, C>,
operation: CommunicationOperation,
phase: DistributedExecutionPhase,
route: Option<CommunicationRouteId>,
) -> Result<T, PartitionExecutionError>
pub fn wait<T, C>( &self, submission: Submission<T, C>, operation: CommunicationOperation, phase: DistributedExecutionPhase, route: Option<CommunicationRouteId>, ) -> Result<T, PartitionExecutionError>
Waits under the selected bound and permanently poisons this session on failure.
Trait Implementations§
Source§impl Clone for PartitionCommunicationAuthority
impl Clone for PartitionCommunicationAuthority
Source§fn clone(&self) -> PartitionCommunicationAuthority
fn clone(&self) -> PartitionCommunicationAuthority
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more