pub struct EventPublisherIndex(/* private fields */);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§
Source§impl EventPublisherIndex
impl EventPublisherIndex
pub const fn from_value(value: EventPublisherIndexValue) -> Self
pub const fn to_value(self) -> EventPublisherIndexValue
Trait Implementations§
Source§impl Clone for EventPublisherIndex
impl Clone for EventPublisherIndex
Source§fn clone(&self) -> EventPublisherIndex
fn clone(&self) -> EventPublisherIndex
Returns a duplicate 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 Debug for EventPublisherIndex
impl Debug for EventPublisherIndex
Source§impl From<EventPublisherIndex> for EventPublisherIndexValue
impl From<EventPublisherIndex> for EventPublisherIndexValue
Source§fn from(from: EventPublisherIndex) -> Self
fn from(from: EventPublisherIndex) -> Self
Converts to this type from the input type.
Source§impl From<usize> for EventPublisherIndex
impl From<usize> for EventPublisherIndex
Source§fn from(from: EventPublisherIndexValue) -> Self
fn from(from: EventPublisherIndexValue) -> Self
Converts to this type from the input type.
Source§impl Hash for EventPublisherIndex
impl Hash for EventPublisherIndex
Source§impl Ord for EventPublisherIndex
impl Ord for EventPublisherIndex
Source§fn cmp(&self, other: &EventPublisherIndex) -> Ordering
fn cmp(&self, other: &EventPublisherIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EventPublisherIndex
impl PartialEq for EventPublisherIndex
Source§impl PartialOrd for EventPublisherIndex
impl PartialOrd for EventPublisherIndex
impl Copy for EventPublisherIndex
impl Eq for EventPublisherIndex
impl StructuralPartialEq for EventPublisherIndex
Auto Trait Implementations§
impl Freeze for EventPublisherIndex
impl RefUnwindSafe for EventPublisherIndex
impl Send for EventPublisherIndex
impl Sync for EventPublisherIndex
impl Unpin for EventPublisherIndex
impl UnwindSafe for EventPublisherIndex
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