pub struct PotentialEvent<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> {
pub node_key: Key,
pub name: Name,
pub source_event: Source,
pub layer: i16,
}
Expand description
Potential events are events that might get emitted or not.
Fields§
§node_key: Key
§name: Name
§source_event: Source
§layer: i16
Trait Implementations§
Source§impl<Key: Clone + NodeKey, Name: Clone + NameOfEvent, Source: Clone + SourceEvent> Clone for PotentialEvent<Key, Name, Source>
impl<Key: Clone + NodeKey, Name: Clone + NameOfEvent, Source: Clone + SourceEvent> Clone for PotentialEvent<Key, Name, Source>
Source§fn clone(&self) -> PotentialEvent<Key, Name, Source>
fn clone(&self) -> PotentialEvent<Key, Name, Source>
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<Key: Debug + NodeKey, Name: Debug + NameOfEvent, Source: Debug + SourceEvent> Debug for PotentialEvent<Key, Name, Source>
impl<Key: Debug + NodeKey, Name: Debug + NameOfEvent, Source: Debug + SourceEvent> Debug for PotentialEvent<Key, Name, Source>
Source§impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> Ord for PotentialEvent<Key, Name, Source>
impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> Ord for PotentialEvent<Key, Name, Source>
Source§impl<Key: PartialEq + NodeKey, Name: PartialEq + NameOfEvent, Source: PartialEq + SourceEvent> PartialEq for PotentialEvent<Key, Name, Source>
impl<Key: PartialEq + NodeKey, Name: PartialEq + NameOfEvent, Source: PartialEq + SourceEvent> PartialEq for PotentialEvent<Key, Name, Source>
Source§fn eq(&self, other: &PotentialEvent<Key, Name, Source>) -> bool
fn eq(&self, other: &PotentialEvent<Key, Name, Source>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> PartialOrd for PotentialEvent<Key, Name, Source>
impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> PartialOrd for PotentialEvent<Key, Name, Source>
impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> Eq for PotentialEvent<Key, Name, Source>
impl<Key: NodeKey, Name: NameOfEvent, Source: SourceEvent> StructuralPartialEq for PotentialEvent<Key, Name, Source>
Auto Trait Implementations§
impl<Key, Name, Source> Freeze for PotentialEvent<Key, Name, Source>
impl<Key, Name, Source> RefUnwindSafe for PotentialEvent<Key, Name, Source>
impl<Key, Name, Source> Send for PotentialEvent<Key, Name, Source>
impl<Key, Name, Source> Sync for PotentialEvent<Key, Name, Source>
impl<Key, Name, Source> Unpin for PotentialEvent<Key, Name, Source>
impl<Key, Name, Source> UnwindSafe for PotentialEvent<Key, Name, Source>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more