pub struct InfiniBandAddr(/* private fields */);Expand description
Represents a physical 20-octet InfiniBand format address.
Implementations§
Source§impl InfiniBandAddr
impl InfiniBandAddr
Sourcepub const fn to_colon_seperated_array(&self) -> [u8; 59]
pub const fn to_colon_seperated_array(&self) -> [u8; 59]
Returns an array contains a colon formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Sourcepub const fn to_hyphen_seperated_array(&self) -> [u8; 59]
pub const fn to_hyphen_seperated_array(&self) -> [u8; 59]
Returns an array contains a hyphen formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Sourcepub const fn to_dot_seperated_array(&self) -> [u8; 49]
pub const fn to_dot_seperated_array(&self) -> [u8; 49]
Returns an array contains a dot formatted address.
The returned array can be used to directly convert to str
by using core::str::from_utf8(&array).unwrap( ).
Trait Implementations§
Source§impl AsRef<[u8]> for InfiniBandAddr
impl AsRef<[u8]> for InfiniBandAddr
Source§impl Clone for InfiniBandAddr
impl Clone for InfiniBandAddr
Source§fn clone(&self) -> InfiniBandAddr
fn clone(&self) -> InfiniBandAddr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InfiniBandAddr
impl Debug for InfiniBandAddr
Source§impl<'a> Deserialize<'a> for InfiniBandAddr
impl<'a> Deserialize<'a> for InfiniBandAddr
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InfiniBandAddr
impl Display for InfiniBandAddr
Source§impl From<InfiniBandAddr> for [u8; 20]
impl From<InfiniBandAddr> for [u8; 20]
Source§fn from(addr: InfiniBandAddr) -> Self
fn from(addr: InfiniBandAddr) -> Self
Converts to this type from the input type.
Source§impl FromStr for InfiniBandAddr
impl FromStr for InfiniBandAddr
Source§impl Hash for InfiniBandAddr
impl Hash for InfiniBandAddr
Source§impl Ord for InfiniBandAddr
impl Ord for InfiniBandAddr
Source§fn cmp(&self, other: &InfiniBandAddr) -> Ordering
fn cmp(&self, other: &InfiniBandAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InfiniBandAddr
impl PartialEq for InfiniBandAddr
Source§impl PartialOrd for InfiniBandAddr
impl PartialOrd for InfiniBandAddr
Source§impl Serialize for InfiniBandAddr
impl Serialize for InfiniBandAddr
Source§impl TryFrom<&str> for InfiniBandAddr
impl TryFrom<&str> for InfiniBandAddr
impl Copy for InfiniBandAddr
impl Eq for InfiniBandAddr
impl StructuralPartialEq for InfiniBandAddr
Auto Trait Implementations§
impl Freeze for InfiniBandAddr
impl RefUnwindSafe for InfiniBandAddr
impl Send for InfiniBandAddr
impl Sync for InfiniBandAddr
impl Unpin for InfiniBandAddr
impl UnwindSafe for InfiniBandAddr
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