Struct message_io::network::ResourceId [−][src]
pub struct ResourceId { /* fields omitted */ }
Expand description
Unique identifier of a network resource in your system. The identifier wrap 3 values,
- The type, that can be a value of ResourceType.
- The adapter id, that represents the adapter that creates this id
- The base value: that is an unique identifier of the resource inside of its adapter.
Implementations
Returns the ResourceType of this resource
Returns the associated adapter id.
Note that this returned value is the same as the value of crate::network::Transport::id()
if that transport uses the same adapter.
Returns the unique resource identifier inside the associated adapter.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
Blanket Implementations
Mutably borrows from an owned value. Read more