Struct ruma_common::OwnedDeviceId
source · pub struct OwnedDeviceId { /* private fields */ }
Expand description
Owned variant of DeviceId
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 = DeviceId>§
Trait Implementations§
source§impl AsRef<[u8]> for OwnedDeviceId
impl AsRef<[u8]> for OwnedDeviceId
source§impl AsRef<DeviceId> for OwnedDeviceId
impl AsRef<DeviceId> for OwnedDeviceId
source§impl AsRef<str> for OwnedDeviceId
impl AsRef<str> for OwnedDeviceId
source§impl Borrow<DeviceId> for OwnedDeviceId
impl Borrow<DeviceId> for OwnedDeviceId
source§impl Clone for OwnedDeviceId
impl Clone for OwnedDeviceId
source§impl Debug for OwnedDeviceId
impl Debug for OwnedDeviceId
source§impl Deref for OwnedDeviceId
impl Deref for OwnedDeviceId
source§impl<'de> Deserialize<'de> for OwnedDeviceId
impl<'de> Deserialize<'de> for OwnedDeviceId
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 OwnedDeviceId
impl Display for OwnedDeviceId
source§impl From<&DeviceId> for OwnedDeviceId
impl From<&DeviceId> for OwnedDeviceId
source§fn from(id: &DeviceId) -> OwnedDeviceId
fn from(id: &DeviceId) -> OwnedDeviceId
Converts to this type from the input type.
source§impl From<&str> for OwnedDeviceId
impl From<&str> for OwnedDeviceId
source§impl From<OwnedDeviceId> for DeviceIdOrAllDevices
impl From<OwnedDeviceId> for DeviceIdOrAllDevices
source§fn from(d: OwnedDeviceId) -> Self
fn from(d: OwnedDeviceId) -> Self
Converts to this type from the input type.
source§impl From<OwnedDeviceId> for OwnedBase64PublicKeyOrDeviceId
impl From<OwnedDeviceId> for OwnedBase64PublicKeyOrDeviceId
source§fn from(value: OwnedDeviceId) -> Self
fn from(value: OwnedDeviceId) -> Self
Converts to this type from the input type.
source§impl From<OwnedDeviceId> for String
impl From<OwnedDeviceId> for String
source§fn from(id: OwnedDeviceId) -> String
fn from(id: OwnedDeviceId) -> String
Converts to this type from the input type.
source§impl From<String> for OwnedDeviceId
impl From<String> for OwnedDeviceId
source§impl Hash for OwnedDeviceId
impl Hash for OwnedDeviceId
source§impl KeyName for OwnedDeviceId
impl KeyName for OwnedDeviceId
source§impl Ord for OwnedDeviceId
impl Ord for OwnedDeviceId
source§impl PartialEq<&DeviceId> for OwnedDeviceId
impl PartialEq<&DeviceId> for OwnedDeviceId
source§impl PartialEq<&str> for OwnedDeviceId
impl PartialEq<&str> for OwnedDeviceId
source§impl PartialEq<Arc<DeviceId>> for OwnedDeviceId
impl PartialEq<Arc<DeviceId>> for OwnedDeviceId
source§impl PartialEq<Box<DeviceId>> for OwnedDeviceId
impl PartialEq<Box<DeviceId>> for OwnedDeviceId
source§impl PartialEq<DeviceId> for OwnedDeviceId
impl PartialEq<DeviceId> for OwnedDeviceId
source§impl PartialEq<OwnedDeviceId> for &DeviceId
impl PartialEq<OwnedDeviceId> for &DeviceId
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for &str
impl PartialEq<OwnedDeviceId> for &str
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for Arc<DeviceId>
impl PartialEq<OwnedDeviceId> for Arc<DeviceId>
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for Box<DeviceId>
impl PartialEq<OwnedDeviceId> for Box<DeviceId>
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for DeviceId
impl PartialEq<OwnedDeviceId> for DeviceId
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for String
impl PartialEq<OwnedDeviceId> for String
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OwnedDeviceId> for str
impl PartialEq<OwnedDeviceId> for str
source§fn eq(&self, other: &OwnedDeviceId) -> bool
fn eq(&self, other: &OwnedDeviceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<String> for OwnedDeviceId
impl PartialEq<String> for OwnedDeviceId
source§impl PartialEq<str> for OwnedDeviceId
impl PartialEq<str> for OwnedDeviceId
source§impl PartialEq for OwnedDeviceId
impl PartialEq for OwnedDeviceId
source§impl PartialOrd for OwnedDeviceId
impl PartialOrd for OwnedDeviceId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for OwnedDeviceId
impl Serialize for OwnedDeviceId
impl Eq for OwnedDeviceId
Auto Trait Implementations§
impl Freeze for OwnedDeviceId
impl RefUnwindSafe for OwnedDeviceId
impl Send for OwnedDeviceId
impl Sync for OwnedDeviceId
impl Unpin for OwnedDeviceId
impl UnwindSafe for OwnedDeviceId
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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.