pub enum ObsEvent {
Show 19 variants
Sent {
tick: u64,
edge: Edge,
session: SessionId,
from: String,
to: String,
label: String,
},
Received {
tick: u64,
edge: Edge,
session: SessionId,
from: String,
to: String,
label: String,
},
Offered {
tick: u64,
edge: Edge,
label: String,
},
Chose {
tick: u64,
edge: Edge,
label: String,
},
Opened {
tick: u64,
session: SessionId,
roles: Vec<String>,
},
Closed {
tick: u64,
session: SessionId,
},
EpochAdvanced {
tick: u64,
sid: SessionId,
epoch: usize,
},
Halted {
tick: u64,
coro_id: usize,
},
Invoked {
tick: u64,
coro_id: usize,
role: String,
},
Acquired {
tick: u64,
session: SessionId,
role: String,
layer: String,
},
Released {
tick: u64,
session: SessionId,
role: String,
layer: String,
},
Transferred {
tick: u64,
session: SessionId,
role: String,
from: usize,
to: usize,
},
Forked {
tick: u64,
session: SessionId,
ghost: usize,
},
Joined {
tick: u64,
session: SessionId,
},
Aborted {
tick: u64,
session: SessionId,
},
Tagged {
tick: u64,
session: SessionId,
role: String,
fact: String,
},
Checked {
tick: u64,
session: SessionId,
role: String,
target: String,
permitted: bool,
},
Faulted {
tick: u64,
coro_id: usize,
fault: Fault,
},
OutputConditionChecked {
tick: u64,
predicate_ref: String,
witness_ref: Option<String>,
output_digest: String,
passed: bool,
},
}Expand description
Observable event emitted by the VM.
Variants§
Sent
Value sent on an edge.
Fields
Received
Value received on an edge.
Fields
Offered
Label offered on an edge.
Fields
Chose
Label chosen on an edge.
Fields
Opened
Session opened.
Fields
Closed
Session closed.
EpochAdvanced
Session epoch advanced.
Fields
Halted
Coroutine halted.
Invoked
Effect handler invoked.
Fields
Acquired
Guard layer acquired.
Fields
Released
Guard layer released.
Fields
Transferred
Endpoint transferred between coroutines.
Fields
Forked
Speculation forked for a ghost session.
Fields
Joined
Speculation joined.
Aborted
Speculation aborted.
Tagged
Knowledge fact tagged.
Fields
Checked
Knowledge fact checked.
Fields
Faulted
Coroutine faulted.
Fields
OutputConditionChecked
Output-condition verification was evaluated at commit time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ObsEvent
impl<'de> Deserialize<'de> for ObsEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ObsEvent
impl StructuralPartialEq for ObsEvent
Auto Trait Implementations§
impl Freeze for ObsEvent
impl RefUnwindSafe for ObsEvent
impl Send for ObsEvent
impl Sync for ObsEvent
impl Unpin for ObsEvent
impl UnsafeUnpin for ObsEvent
impl UnwindSafe for ObsEvent
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.