Struct matrix_sdk_base::ruma::OwnedDeviceId
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§
§impl AsRef<[u8]> for OwnedDeviceId
impl AsRef<[u8]> for OwnedDeviceId
§impl AsRef<DeviceId> for OwnedDeviceId
impl AsRef<DeviceId> for OwnedDeviceId
§impl AsRef<str> for OwnedDeviceId
impl AsRef<str> for OwnedDeviceId
§impl Borrow<DeviceId> for OwnedDeviceId
impl Borrow<DeviceId> for OwnedDeviceId
§impl Clone for OwnedDeviceId
impl Clone for OwnedDeviceId
§fn clone(&self) -> OwnedDeviceId
fn clone(&self) -> OwnedDeviceId
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 more§impl Debug for OwnedDeviceId
impl Debug for OwnedDeviceId
§impl Deref for OwnedDeviceId
impl Deref for OwnedDeviceId
§impl<'de> Deserialize<'de> for OwnedDeviceId
impl<'de> Deserialize<'de> for OwnedDeviceId
§fn deserialize<D>(
deserializer: D
) -> Result<OwnedDeviceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<OwnedDeviceId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for OwnedDeviceId
impl Display for OwnedDeviceId
§impl From<&DeviceId> for OwnedDeviceId
impl From<&DeviceId> for OwnedDeviceId
§fn from(id: &DeviceId) -> OwnedDeviceId
fn from(id: &DeviceId) -> OwnedDeviceId
Converts to this type from the input type.
§impl From<&str> for OwnedDeviceId
impl From<&str> for OwnedDeviceId
§fn from(s: &str) -> OwnedDeviceId
fn from(s: &str) -> OwnedDeviceId
Converts to this type from the input type.
§impl From<Arc<DeviceId>> for OwnedDeviceId
impl From<Arc<DeviceId>> for OwnedDeviceId
§fn from(a: Arc<DeviceId>) -> OwnedDeviceId
fn from(a: Arc<DeviceId>) -> OwnedDeviceId
Converts to this type from the input type.
§impl From<Box<DeviceId>> for OwnedDeviceId
impl From<Box<DeviceId>> for OwnedDeviceId
§fn from(b: Box<DeviceId>) -> OwnedDeviceId
fn from(b: Box<DeviceId>) -> OwnedDeviceId
Converts to this type from the input type.
§impl From<Box<str>> for OwnedDeviceId
impl From<Box<str>> for OwnedDeviceId
§fn from(s: Box<str>) -> OwnedDeviceId
fn from(s: Box<str>) -> OwnedDeviceId
Converts to this type from the input type.
§impl From<OwnedDeviceId> for Arc<DeviceId>
impl From<OwnedDeviceId> for Arc<DeviceId>
§fn from(a: OwnedDeviceId) -> Arc<DeviceId>
fn from(a: OwnedDeviceId) -> Arc<DeviceId>
Converts to this type from the input type.
§impl From<OwnedDeviceId> for Box<DeviceId>
impl From<OwnedDeviceId> for Box<DeviceId>
§fn from(a: OwnedDeviceId) -> Box<DeviceId>
fn from(a: OwnedDeviceId) -> Box<DeviceId>
Converts to this type from the input type.
§impl From<OwnedDeviceId> for DeviceIdOrAllDevices
impl From<OwnedDeviceId> for DeviceIdOrAllDevices
§fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
Converts to this type from the input type.
§impl From<OwnedDeviceId> for String
impl From<OwnedDeviceId> for String
§fn from(id: OwnedDeviceId) -> String
fn from(id: OwnedDeviceId) -> String
Converts to this type from the input type.
§impl From<String> for OwnedDeviceId
impl From<String> for OwnedDeviceId
§fn from(s: String) -> OwnedDeviceId
fn from(s: String) -> OwnedDeviceId
Converts to this type from the input type.
§impl Hash for OwnedDeviceId
impl Hash for OwnedDeviceId
§impl Ord for OwnedDeviceId
impl Ord for OwnedDeviceId
§impl PartialEq<&DeviceId> for OwnedDeviceId
impl PartialEq<&DeviceId> for OwnedDeviceId
§impl PartialEq<&str> for OwnedDeviceId
impl PartialEq<&str> for OwnedDeviceId
§impl PartialEq<Arc<DeviceId>> for OwnedDeviceId
impl PartialEq<Arc<DeviceId>> for OwnedDeviceId
§impl PartialEq<Box<DeviceId>> for OwnedDeviceId
impl PartialEq<Box<DeviceId>> for OwnedDeviceId
§impl PartialEq<DeviceId> for OwnedDeviceId
impl PartialEq<DeviceId> for OwnedDeviceId
§impl PartialEq<OwnedDeviceId> for &DeviceId
impl PartialEq<OwnedDeviceId> for &DeviceId
§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 ==
.§impl PartialEq<OwnedDeviceId> for &str
impl PartialEq<OwnedDeviceId> for &str
§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 ==
.§impl PartialEq<OwnedDeviceId> for DeviceId
impl PartialEq<OwnedDeviceId> for DeviceId
§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 ==
.§impl PartialEq<OwnedDeviceId> for String
impl PartialEq<OwnedDeviceId> for String
§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 ==
.§impl PartialEq<OwnedDeviceId> for str
impl PartialEq<OwnedDeviceId> for str
§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 ==
.§impl PartialEq<String> for OwnedDeviceId
impl PartialEq<String> for OwnedDeviceId
§impl PartialEq<str> for OwnedDeviceId
impl PartialEq<str> for OwnedDeviceId
§impl PartialEq for OwnedDeviceId
impl PartialEq for OwnedDeviceId
§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 ==
.§impl PartialOrd for OwnedDeviceId
impl PartialOrd for OwnedDeviceId
§fn partial_cmp(&self, other: &OwnedDeviceId) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedDeviceId) -> Option<Ordering>
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 more§impl Serialize for OwnedDeviceId
impl Serialize for OwnedDeviceId
§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
impl Eq for OwnedDeviceId
Auto Trait Implementations§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.