#[non_exhaustive]pub enum RoleId {
Singleton(&'static str, TypeId),
}Expand description
Unique identifier for a role instance.
Used to identify the source/destination of messages when multiple peers are possible on a single connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Ord for RoleId
impl Ord for RoleId
Source§impl PartialOrd for RoleId
impl PartialOrd for RoleId
impl Eq for RoleId
impl StructuralPartialEq for RoleId
Auto Trait Implementations§
impl Freeze for RoleId
impl RefUnwindSafe for RoleId
impl Send for RoleId
impl Sync for RoleId
impl Unpin for RoleId
impl UnsafeUnpin for RoleId
impl UnwindSafe for RoleId
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