Struct message_io::network::ResourceId[][src]

pub struct ResourceId { /* fields omitted */ }

Unique identifier of a network resource. The identifier wrap 3 values,

  • The type, that can be a value of ResourceType.
  • The adapter id, that represent the adapter that creates this id
  • The base value: that is an unique identifier of the resource inside of its adapter.

Implementations

impl ResourceId[src]

pub const ADAPTER_ID_MAX: usize[src]

pub fn from(raw: usize) -> Self[src]

Creates a ResourceId from an id

pub fn raw(&self) -> usize[src]

Returns the internal representation of this id

pub fn resource_type(&self) -> ResourceType[src]

Returns the ResourceType of this resource

pub fn adapter_id(&self) -> u8[src]

Returns the associated transport adapter id.

pub fn base_value(&self) -> usize[src]

Returns the unique identifier inside this adapter.

Trait Implementations

impl Clone for ResourceId[src]

impl Copy for ResourceId[src]

impl Debug for ResourceId[src]

impl Display for ResourceId[src]

impl Eq for ResourceId[src]

impl Hash for ResourceId[src]

impl PartialEq<ResourceId> for ResourceId[src]

impl StructuralEq for ResourceId[src]

impl StructuralPartialEq for ResourceId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,