Struct diem_types::event::EventKey [−][src]
pub struct EventKey(_);Expand description
A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.
Implementations
Get the account address part in this event key
If this is the ith EventKeycreated byget_creator_address(), return i`
Create a unique handle by using an AccountAddress and a counter.
Trait Implementations
type Parameters = <[u8; 24] as Arbitrary>::Parameters
type Parameters = <[u8; 24] as Arbitrary>::Parameters
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
Deserialize this value from the given Serde deserializer. Read more
type Err = EventKeyParseError
type Err = EventKeyParseError
The associated error which can be returned from parsing.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Tries to convert the provided byte array into Event Key.
type Error = EventKeyParseError
type Error = EventKeyParseError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for EventKey
impl UnwindSafe for EventKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.