Struct ruma::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 as_str(&self) -> &str
Available on crate feature events
only.
pub fn as_str(&self) -> &str
events
only.Creates a string slice from this DeviceKeyId
.
sourcepub fn as_bytes(&self) -> &[u8] ⓘ
Available on crate feature events
only.
pub fn as_bytes(&self) -> &[u8] ⓘ
events
only.Creates a byte slice from this DeviceKeyId
.
sourcepub fn algorithm(&self) -> DeviceKeyAlgorithm
Available on crate feature events
only.
pub fn algorithm(&self) -> DeviceKeyAlgorithm
events
only.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§fn clone(&self) -> OwnedDeviceKeyId
fn clone(&self) -> OwnedDeviceKeyId
Returns a copy 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 OwnedDeviceKeyId
impl Debug for OwnedDeviceKeyId
source§impl Deref for OwnedDeviceKeyId
impl Deref for OwnedDeviceKeyId
source§type Target = DeviceKeyId
type Target = DeviceKeyId
The resulting type after dereferencing.
source§impl<'de> Deserialize<'de> for OwnedDeviceKeyId
impl<'de> Deserialize<'de> for OwnedDeviceKeyId
source§fn deserialize<D>(
deserializer: D,
) -> Result<OwnedDeviceKeyId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<OwnedDeviceKeyId, <D as Deserializer<'de>>::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§fn cmp(&self, other: &OwnedDeviceKeyId) -> Ordering
fn cmp(&self, other: &OwnedDeviceKeyId) -> 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<&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 DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
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§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more