pub enum EstablishedObservation<P>{
Started {
authority: ObservationAuthority<P>,
},
Stopped {
relationship: ObservationRelationship<P>,
outcome: Result<Exit<P::Addr>, Crash>,
at: Instant,
},
Cancelled {
relationship: ObservationRelationship<P>,
},
ObserveRejected {
request: ObserveEstablished<P>,
reason: ObservationRejection,
},
CancelRejected {
request: CancelObservation<P>,
reason: ObservationRejection,
},
}Expand description
Whole protocol-indexed observation and cancellation receipts.
Variants§
Started
Fields
Stopped
Cancelled
Fields
§
relationship: ObservationRelationship<P>ObserveRejected
CancelRejected
Implementations§
Source§impl<P> EstablishedObservation<P>
impl<P> EstablishedObservation<P>
pub fn started(authority: ObservationAuthority<P>) -> Self
pub fn stopped( relationship: ObservationRelationship<P>, outcome: Result<Exit<P::Addr>, Crash>, at: Instant, ) -> Self
pub fn cancelled(request: CancelObservation<P>) -> Self
pub fn observe_rejected( request: ObserveEstablished<P>, reason: ObservationRejection, ) -> Self
pub fn cancel_rejected( request: CancelObservation<P>, reason: ObservationRejection, ) -> Self
pub fn id(&self) -> ObservationId
Auto Trait Implementations§
impl<P> Freeze for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + Freeze,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: Freeze,
impl<P> RefUnwindSafe for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + RefUnwindSafe,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: RefUnwindSafe,
impl<P> Send for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + Send,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: Send,
impl<P> Sync for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + Sync,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: Sync,
impl<P> Unpin for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + Unpin,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: Unpin,
impl<P> UnsafeUnpin for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + UnsafeUnpin,
<<P as Protocol>::Addr as RecipientAddress>::Established<P>: UnsafeUnpin,
impl<P> UnwindSafe for EstablishedObservation<P>where
<P as Protocol>::Addr: Sized + UnwindSafe,
<<P as Protocol>::Addr as RecipientAddress>::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