pub struct DeviceId(/* private fields */);Expand description
Exact SCCP station name, normally SEP followed by twelve MAC digits.
Implementations§
Source§impl DeviceId
impl DeviceId
Sourcepub fn new(value: impl Into<String>) -> Result<Self, CodecError>
pub fn new(value: impl Into<String>) -> Result<Self, CodecError>
Validates and canonicalizes a station identifier.
Leading and trailing whitespace is removed, ASCII letters are folded to uppercase, and the result must contain at most 15 alphanumeric characters.
pub fn as_str(&self) -> &str
Trait Implementations§
impl Eq for DeviceId
Source§impl Ord for DeviceId
impl Ord for DeviceId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DeviceId
impl PartialOrd for DeviceId
impl StructuralPartialEq for DeviceId
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnsafeUnpin for DeviceId
impl UnwindSafe for DeviceId
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