pub struct EstablishedTerminationTarget<B: Behavior, P>{ /* private fields */ }Expand description
Exact-incarnation termination observation policy and its one current value.
Implementations§
Source§impl<B, P> EstablishedTerminationTarget<B, P>
impl<B, P> EstablishedTerminationTarget<B, P>
Sourcepub fn take_cancellation(&mut self) -> Option<CancelObservation<P>>
pub fn take_cancellation(&mut self) -> Option<CancelObservation<P>>
Transfer the one current grant into a typed cancellation request. The caller must return that request in its owning Actions lane.
Sourcepub fn into_rejected_observe(
self,
) -> Result<(ObserveEstablished<P>, ObservationRejection), Self>
pub fn into_rejected_observe( self, ) -> Result<(ObserveEstablished<P>, ObservationRejection), Self>
Recover the whole rejected start or return every current target value.
Sourcepub fn into_rejected_cancel(
self,
) -> Result<(CancelObservation<P>, ObservationRejection), Self>
pub fn into_rejected_cancel( self, ) -> Result<(CancelObservation<P>, ObservationRejection), Self>
Recover the whole rejected cancellation or return the current target.
Trait Implementations§
Source§impl<B, P> TerminationObservationTarget<B> for EstablishedTerminationTarget<B, P>
impl<B, P> TerminationObservationTarget<B> for EstablishedTerminationTarget<B, P>
type Report = EstablishedObservation<P>
type Request = ObserveEstablished<P>
fn request(&mut self) -> Option<Self::Request>
fn observation(&self) -> TerminationObservation
fn react( &mut self, inner: &mut B, report: Self::Report, ) -> Result<Actions<BehaviorAddr<B>, B::Ph, B::Sends, B::Birth>, Self::Report>
Auto Trait Implementations§
impl<B, P> Freeze for EstablishedTerminationTarget<B, P>
impl<B, P> RefUnwindSafe for EstablishedTerminationTarget<B, P>where
<<B as Behavior>::Protocol as Protocol>::Addr: Sized,
<<<B as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<P>: RefUnwindSafe,
impl<B, P> Send for EstablishedTerminationTarget<B, P>
impl<B, P> Sync for EstablishedTerminationTarget<B, P>
impl<B, P> Unpin for EstablishedTerminationTarget<B, P>
impl<B, P> UnsafeUnpin for EstablishedTerminationTarget<B, P>where
<<B as Behavior>::Protocol as Protocol>::Addr: Sized,
<<<B as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<P>: UnsafeUnpin,
impl<B, P> UnwindSafe for EstablishedTerminationTarget<B, P>where
<<B as Behavior>::Protocol as Protocol>::Addr: Sized,
<<<B as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<P>: 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