pub enum CommunicationEvent {
Message(MessageEvent),
State(StateEvent),
Setup(CommunicationSetup),
}
Expand description
Various communication events.
Variants§
Message(MessageEvent)
An observed message.
State(StateEvent)
A state transition.
Setup(CommunicationSetup)
Setup event
Trait Implementations§
source§impl Clone for CommunicationEvent
impl Clone for CommunicationEvent
source§fn clone(&self) -> CommunicationEvent
fn clone(&self) -> CommunicationEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Columnar for CommunicationEvent
impl Columnar for CommunicationEvent
§type Ref<'a> = CommunicationEventReference<<MessageEvent as Columnar>::Ref<'a>, <StateEvent as Columnar>::Ref<'a>, <CommunicationSetup as Columnar>::Ref<'a>>
where
Self: 'a,
MessageEvent: 'a,
StateEvent: 'a,
CommunicationSetup: 'a
type Ref<'a> = CommunicationEventReference<<MessageEvent as Columnar>::Ref<'a>, <StateEvent as Columnar>::Ref<'a>, <CommunicationSetup as Columnar>::Ref<'a>> where Self: 'a, MessageEvent: 'a, StateEvent: 'a, CommunicationSetup: 'a
For each lifetime, a reference with that lifetime. Read more
source§fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
Repopulates
self
from a reference. Read moresource§fn into_owned<'a>(other: Self::Ref<'a>) -> Self
fn into_owned<'a>(other: Self::Ref<'a>) -> Self
Produce an instance of
Self
from Self::Ref<'a>
.§type Container = CommunicationEventContainer<<MessageEvent as Columnar>::Container, <StateEvent as Columnar>::Container, <CommunicationSetup as Columnar>::Container>
type Container = CommunicationEventContainer<<MessageEvent as Columnar>::Container, <StateEvent as Columnar>::Container, <CommunicationSetup as Columnar>::Container>
The type that stores the columnar representation. Read more
source§fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
Converts a sequence of the references to the type into columnar form.
source§fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
Converts a sequence of the type into columnar form. Read more
source§impl Container<CommunicationEvent> for CommunicationEventContainer<<MessageEvent as Columnar>::Container, <StateEvent as Columnar>::Container, <CommunicationSetup as Columnar>::Container>
impl Container<CommunicationEvent> for CommunicationEventContainer<<MessageEvent as Columnar>::Container, <StateEvent as Columnar>::Container, <CommunicationSetup as Columnar>::Container>
§type Borrowed<'a> = CommunicationEventContainer<<<MessageEvent as Columnar>::Container as Container<MessageEvent>>::Borrowed<'a>, <<StateEvent as Columnar>::Container as Container<StateEvent>>::Borrowed<'a>, <<CommunicationSetup as Columnar>::Container as Container<CommunicationSetup>>::Borrowed<'a>, &'a [u8], &'a [u64]>
where
MessageEvent: 'a,
StateEvent: 'a,
CommunicationSetup: 'a
type Borrowed<'a> = CommunicationEventContainer<<<MessageEvent as Columnar>::Container as Container<MessageEvent>>::Borrowed<'a>, <<StateEvent as Columnar>::Container as Container<StateEvent>>::Borrowed<'a>, <<CommunicationSetup as Columnar>::Container as Container<CommunicationSetup>>::Borrowed<'a>, &'a [u8], &'a [u64]> where MessageEvent: 'a, StateEvent: 'a, CommunicationSetup: 'a
The type of a borrowed container. Read more
source§impl Debug for CommunicationEvent
impl Debug for CommunicationEvent
source§impl<'de> Deserialize<'de> for CommunicationEvent
impl<'de> Deserialize<'de> for CommunicationEvent
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
source§impl From<MessageEvent> for CommunicationEvent
impl From<MessageEvent> for CommunicationEvent
source§fn from(v: MessageEvent) -> CommunicationEvent
fn from(v: MessageEvent) -> CommunicationEvent
Converts to this type from the input type.
source§impl From<StateEvent> for CommunicationEvent
impl From<StateEvent> for CommunicationEvent
source§fn from(v: StateEvent) -> CommunicationEvent
fn from(v: StateEvent) -> CommunicationEvent
Converts to this type from the input type.
source§impl Hash for CommunicationEvent
impl Hash for CommunicationEvent
source§impl PartialEq for CommunicationEvent
impl PartialEq for CommunicationEvent
source§impl<'columnar, C0, C1, C2> Push<&'columnar CommunicationEvent> for CommunicationEventContainer<C0, C1, C2>where
C0: Len + Push<&'columnar MessageEvent>,
C1: Len + Push<&'columnar StateEvent>,
C2: Len + Push<&'columnar CommunicationSetup>,
impl<'columnar, C0, C1, C2> Push<&'columnar CommunicationEvent> for CommunicationEventContainer<C0, C1, C2>where
C0: Len + Push<&'columnar MessageEvent>,
C1: Len + Push<&'columnar StateEvent>,
C2: Len + Push<&'columnar CommunicationSetup>,
source§fn push(&mut self, item: &'columnar CommunicationEvent)
fn push(&mut self, item: &'columnar CommunicationEvent)
Pushes an item onto
self
.source§fn extend(&mut self, iter: impl IntoIterator<Item = T>)
fn extend(&mut self, iter: impl IntoIterator<Item = T>)
Pushes elements of an iterator onto
self
.source§impl<C0, C1, C2> Push<CommunicationEvent> for CommunicationEventContainer<C0, C1, C2>
impl<C0, C1, C2> Push<CommunicationEvent> for CommunicationEventContainer<C0, C1, C2>
source§fn push(&mut self, item: CommunicationEvent)
fn push(&mut self, item: CommunicationEvent)
Pushes an item onto
self
.source§fn extend(&mut self, iter: impl IntoIterator<Item = T>)
fn extend(&mut self, iter: impl IntoIterator<Item = T>)
Pushes elements of an iterator onto
self
.source§impl Serialize for CommunicationEvent
impl Serialize for CommunicationEvent
impl Copy for CommunicationEvent
impl Eq for CommunicationEvent
impl StructuralPartialEq for CommunicationEvent
Auto Trait Implementations§
impl Freeze for CommunicationEvent
impl RefUnwindSafe for CommunicationEvent
impl Send for CommunicationEvent
impl Sync for CommunicationEvent
impl Unpin for CommunicationEvent
impl UnwindSafe for CommunicationEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.