pub enum NegotiationOutcome<T> {
Accepted(T),
Rejected {
by: SessionEndpoint,
reason: RejectionReason,
cleanup: Option<ChildCleanupFacts>,
},
}Expand description
Clean application-level result of the challenged negotiation.
Variants§
Accepted(T)
Bilateral exact ACCEPT yielded the ready session owner.
Rejected
One endpoint made a canonical clean application rejection.
Fields
§
by: SessionEndpointEndpoint that rejected.
§
reason: RejectionReasonExact nonzero reason carried by the peer or local decision.
§
cleanup: Option<ChildCleanupFacts>Coordinator-owned child cleanup facts; receivers have no child authority.
Auto Trait Implementations§
impl<T> Freeze for NegotiationOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for NegotiationOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for NegotiationOutcome<T>where
T: Send,
impl<T> Sync for NegotiationOutcome<T>where
T: Sync,
impl<T> Unpin for NegotiationOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for NegotiationOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NegotiationOutcome<T>where
T: UnwindSafe,
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