Struct ruma_identifiers::DeviceId [−][src]
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]
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,