Struct msr_plugin::EventPublisherIndex
source · [−]pub struct EventPublisherIndex(_);
Expand description
Numeric identifier of an event publisher control cycle
Uniquely identifies an event publisher in the system at runtime.
The value is supposed to be used as a key or index to retrieve extended metadata for an event publisher that does not need to be sent with every event. This metadata is probably immutable.
Implementations
sourceimpl EventPublisherIndex
impl EventPublisherIndex
pub const fn from_value(value: EventPublisherIndexValue) -> Self
pub const fn to_value(self) -> EventPublisherIndexValue
Trait Implementations
sourceimpl Clone for EventPublisherIndex
impl Clone for EventPublisherIndex
sourcefn clone(&self) -> EventPublisherIndex
fn clone(&self) -> EventPublisherIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventPublisherIndex
impl Debug for EventPublisherIndex
sourceimpl From<EventPublisherIndex> for EventPublisherIndexValue
impl From<EventPublisherIndex> for EventPublisherIndexValue
sourcefn from(from: EventPublisherIndex) -> Self
fn from(from: EventPublisherIndex) -> Self
Converts to this type from the input type.
sourceimpl From<usize> for EventPublisherIndex
impl From<usize> for EventPublisherIndex
sourcefn from(from: EventPublisherIndexValue) -> Self
fn from(from: EventPublisherIndexValue) -> Self
Converts to this type from the input type.
sourceimpl Hash for EventPublisherIndex
impl Hash for EventPublisherIndex
sourceimpl Ord for EventPublisherIndex
impl Ord for EventPublisherIndex
sourcefn cmp(&self, other: &EventPublisherIndex) -> Ordering
fn cmp(&self, other: &EventPublisherIndex) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<EventPublisherIndex> for EventPublisherIndex
impl PartialEq<EventPublisherIndex> for EventPublisherIndex
sourcefn eq(&self, other: &EventPublisherIndex) -> bool
fn eq(&self, other: &EventPublisherIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<EventPublisherIndex> for EventPublisherIndex
impl PartialOrd<EventPublisherIndex> for EventPublisherIndex
sourcefn partial_cmp(&self, other: &EventPublisherIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &EventPublisherIndex) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for EventPublisherIndex
impl Eq for EventPublisherIndex
impl StructuralEq for EventPublisherIndex
impl StructuralPartialEq for EventPublisherIndex
Auto Trait Implementations
impl RefUnwindSafe for EventPublisherIndex
impl Send for EventPublisherIndex
impl Sync for EventPublisherIndex
impl Unpin for EventPublisherIndex
impl UnwindSafe for EventPublisherIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more