Struct ruma_common::OwnedDeviceKeyId
source · pub struct OwnedDeviceKeyId { /* private fields */ }
Expand description
Owned variant of DeviceKeyId
The wrapper type for this type is variable, by default it’ll use Box
,
but you can change that by setting “--cfg=ruma_identifiers_storage=...
” using
RUSTFLAGS
or .cargo/config.toml
(under [build]
-> rustflags = ["..."]
)
to the following;
ruma_identifiers_storage="Arc"
to useArc
as a wrapper type.
Methods from Deref<Target = DeviceKeyId>§
sourcepub fn algorithm(&self) -> DeviceKeyAlgorithm
pub fn algorithm(&self) -> DeviceKeyAlgorithm
Returns key algorithm of the device key ID.
Trait Implementations§
source§impl AsRef<[u8]> for OwnedDeviceKeyId
impl AsRef<[u8]> for OwnedDeviceKeyId
source§impl AsRef<DeviceKeyId> for OwnedDeviceKeyId
impl AsRef<DeviceKeyId> for OwnedDeviceKeyId
source§fn as_ref(&self) -> &DeviceKeyId
fn as_ref(&self) -> &DeviceKeyId
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for OwnedDeviceKeyId
impl AsRef<str> for OwnedDeviceKeyId
source§impl Borrow<DeviceKeyId> for OwnedDeviceKeyId
impl Borrow<DeviceKeyId> for OwnedDeviceKeyId
source§fn borrow(&self) -> &DeviceKeyId
fn borrow(&self) -> &DeviceKeyId
Immutably borrows from an owned value. Read more
source§impl Clone for OwnedDeviceKeyId
impl Clone for OwnedDeviceKeyId
source§impl Debug for OwnedDeviceKeyId
impl Debug for OwnedDeviceKeyId
source§impl Deref for OwnedDeviceKeyId
impl Deref for OwnedDeviceKeyId
source§impl<'de> Deserialize<'de> for OwnedDeviceKeyId
impl<'de> Deserialize<'de> for OwnedDeviceKeyId
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OwnedDeviceKeyId
impl Display for OwnedDeviceKeyId
source§impl From<&DeviceKeyId> for OwnedDeviceKeyId
impl From<&DeviceKeyId> for OwnedDeviceKeyId
source§fn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
fn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
Converts to this type from the input type.
source§impl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
source§fn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
source§impl From<Box<DeviceKeyId>> for OwnedDeviceKeyId
impl From<Box<DeviceKeyId>> for OwnedDeviceKeyId
source§fn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
source§impl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
source§fn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
Converts to this type from the input type.
source§impl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
source§fn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
Converts to this type from the input type.
source§impl From<OwnedDeviceKeyId> for String
impl From<OwnedDeviceKeyId> for String
source§fn from(id: OwnedDeviceKeyId) -> String
fn from(id: OwnedDeviceKeyId) -> String
Converts to this type from the input type.
source§impl FromStr for OwnedDeviceKeyId
impl FromStr for OwnedDeviceKeyId
source§impl Hash for OwnedDeviceKeyId
impl Hash for OwnedDeviceKeyId
source§impl Ord for OwnedDeviceKeyId
impl Ord for OwnedDeviceKeyId
source§impl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
source§impl PartialEq<&str> for OwnedDeviceKeyId
impl PartialEq<&str> for OwnedDeviceKeyId
source§impl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
source§impl PartialEq<Box<DeviceKeyId>> for OwnedDeviceKeyId
impl PartialEq<Box<DeviceKeyId>> for OwnedDeviceKeyId
source§impl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
source§impl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
source§impl PartialEq<OwnedDeviceKeyId> for &str
impl PartialEq<OwnedDeviceKeyId> for &str
source§impl PartialEq<OwnedDeviceKeyId> for Arc<DeviceKeyId>
impl PartialEq<OwnedDeviceKeyId> for Arc<DeviceKeyId>
source§impl PartialEq<OwnedDeviceKeyId> for Box<DeviceKeyId>
impl PartialEq<OwnedDeviceKeyId> for Box<DeviceKeyId>
source§impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
source§impl PartialEq<OwnedDeviceKeyId> for String
impl PartialEq<OwnedDeviceKeyId> for String
source§impl PartialEq<OwnedDeviceKeyId> for str
impl PartialEq<OwnedDeviceKeyId> for str
source§impl PartialEq<String> for OwnedDeviceKeyId
impl PartialEq<String> for OwnedDeviceKeyId
source§impl PartialEq<str> for OwnedDeviceKeyId
impl PartialEq<str> for OwnedDeviceKeyId
source§impl PartialEq for OwnedDeviceKeyId
impl PartialEq for OwnedDeviceKeyId
source§impl PartialOrd for OwnedDeviceKeyId
impl PartialOrd for OwnedDeviceKeyId
source§impl Serialize for OwnedDeviceKeyId
impl Serialize for OwnedDeviceKeyId
source§impl TryFrom<&str> for OwnedDeviceKeyId
impl TryFrom<&str> for OwnedDeviceKeyId
source§impl TryFrom<String> for OwnedDeviceKeyId
impl TryFrom<String> for OwnedDeviceKeyId
impl Eq for OwnedDeviceKeyId
Auto Trait Implementations§
impl Freeze for OwnedDeviceKeyId
impl RefUnwindSafe for OwnedDeviceKeyId
impl Send for OwnedDeviceKeyId
impl Sync for OwnedDeviceKeyId
impl Unpin for OwnedDeviceKeyId
impl UnwindSafe for OwnedDeviceKeyId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.