Struct ruma::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.
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§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 moresource§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<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
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§fn from(s: &str) -> OwnedDeviceId
fn from(s: &str) -> OwnedDeviceId
Converts to this type from the input type.
source§impl From<OwnedDeviceId> for DeviceIdOrAllDevices
impl From<OwnedDeviceId> for DeviceIdOrAllDevices
source§fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
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§fn from(s: String) -> OwnedDeviceId
fn from(s: String) -> OwnedDeviceId
Converts to this type from the input type.
source§impl Hash for OwnedDeviceId
impl Hash for OwnedDeviceId
source§impl Ord for OwnedDeviceId
impl Ord for OwnedDeviceId
source§fn cmp(&self, other: &OwnedDeviceId) -> Ordering
fn cmp(&self, other: &OwnedDeviceId) -> 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<&DeviceId> for OwnedDeviceId
impl PartialEq<&DeviceId> for OwnedDeviceId
source§impl PartialEq<&str> for OwnedDeviceId
impl PartialEq<&str> 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§impl PartialEq<OwnedDeviceId> for &str
impl PartialEq<OwnedDeviceId> for &str
source§impl PartialEq<OwnedDeviceId> for DeviceId
impl PartialEq<OwnedDeviceId> for DeviceId
source§impl PartialEq<OwnedDeviceId> for str
impl PartialEq<OwnedDeviceId> for str
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
source§impl Serialize for OwnedDeviceId
impl Serialize for OwnedDeviceId
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
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§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