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
Performs the conversion.
sourceimpl From<usize> for EventPublisherIndex
impl From<usize> for EventPublisherIndex
sourcefn from(from: EventPublisherIndexValue) -> Self
fn from(from: EventPublisherIndexValue) -> Self
Performs the conversion.
sourceimpl Hash for EventPublisherIndex
impl Hash for EventPublisherIndex
sourceimpl Ord for EventPublisherIndex
impl Ord for EventPublisherIndex
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
sourcefn ne(&self, other: &EventPublisherIndex) -> bool
fn ne(&self, other: &EventPublisherIndex) -> bool
This method tests for !=
.
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more