Struct message_io::network::ResourceId [−][src]
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]
fn clone(&self) -> ResourceId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ResourceId> for ResourceId
[src]
fn eq(&self, other: &ResourceId) -> bool
[src]
fn ne(&self, other: &ResourceId) -> bool
[src]
impl StructuralEq for ResourceId
[src]
impl StructuralPartialEq for ResourceId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceId
[src]
impl Send for ResourceId
[src]
impl Sync for ResourceId
[src]
impl Unpin for ResourceId
[src]
impl UnwindSafe for ResourceId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,