Struct ruma_identifiers::DeviceId[][src]

#[repr(transparent)]pub struct DeviceId(_);

A Matrix key ID.

Device identifiers in Matrix are completely opaque character sequences. This type is provided simply for its semantic value.

Implementations

impl DeviceId[src]

pub fn as_str(&self) -> &str[src]

Creates a string slice from this DeviceId.

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

Creates a byte slice from this DeviceId.

impl DeviceId[src]

pub fn new() -> Box<Self>[src]

This is supported on crate feature rand only.

Generates a random DeviceId, suitable for assignment to a new device.

Trait Implementations

impl AsRef<str> for DeviceId[src]

impl Debug for DeviceId[src]

impl Display for DeviceId[src]

impl Eq for DeviceId[src]

impl<'a> From<&'a str> for &'a DeviceId[src]

impl Hash for DeviceId[src]

impl Ord for DeviceId[src]

impl PartialEq<&'_ str> for DeviceId[src]

impl PartialEq<DeviceId> for DeviceId[src]

impl PartialEq<String> for DeviceId[src]

impl PartialEq<str> for DeviceId[src]

impl PartialOrd<DeviceId> for DeviceId[src]

impl Serialize for DeviceId[src]

impl ToOwned for DeviceId[src]

type Owned = Box<DeviceId>

The resulting type after obtaining ownership.

Auto Trait Implementations

impl RefUnwindSafe for DeviceId

impl Send for DeviceId

impl !Sized for DeviceId

impl Sync for DeviceId

impl Unpin for DeviceId

impl UnwindSafe for DeviceId

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> ToString for T where
    T: Display + ?Sized
[src]