Struct ruma_common::OwnedServerName
source · [−]pub struct OwnedServerName { /* private fields */ }
Expand description
Owned variant of ServerName
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 = ServerName>
Trait Implementations
sourceimpl AsRef<ServerName> for OwnedServerName
impl AsRef<ServerName> for OwnedServerName
sourcefn as_ref(&self) -> &ServerName
fn as_ref(&self) -> &ServerName
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for OwnedServerName
impl AsRef<str> for OwnedServerName
sourceimpl Borrow<ServerName> for OwnedServerName
impl Borrow<ServerName> for OwnedServerName
sourcefn borrow(&self) -> &ServerName
fn borrow(&self) -> &ServerName
Immutably borrows from an owned value. Read more
sourceimpl Clone for OwnedServerName
impl Clone for OwnedServerName
sourceimpl Debug for OwnedServerName
impl Debug for OwnedServerName
sourceimpl Deref for OwnedServerName
impl Deref for OwnedServerName
type Target = ServerName
type Target = ServerName
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for OwnedServerName
impl<'de> Deserialize<'de> for OwnedServerName
sourcefn 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
sourceimpl Display for OwnedServerName
impl Display for OwnedServerName
sourceimpl From<&ServerName> for OwnedServerName
impl From<&ServerName> for OwnedServerName
sourcefn from(id: &ServerName) -> OwnedServerName
fn from(id: &ServerName) -> OwnedServerName
Converts to this type from the input type.
sourceimpl From<Arc<ServerName>> for OwnedServerName
impl From<Arc<ServerName>> for OwnedServerName
sourcefn from(a: Arc<ServerName>) -> OwnedServerName
fn from(a: Arc<ServerName>) -> OwnedServerName
Converts to this type from the input type.
sourceimpl From<Box<ServerName, Global>> for OwnedServerName
impl From<Box<ServerName, Global>> for OwnedServerName
sourcefn from(b: Box<ServerName>) -> OwnedServerName
fn from(b: Box<ServerName>) -> OwnedServerName
Converts to this type from the input type.
sourceimpl From<OwnedServerName> for Arc<ServerName>
impl From<OwnedServerName> for Arc<ServerName>
sourcefn from(a: OwnedServerName) -> Arc<ServerName>
fn from(a: OwnedServerName) -> Arc<ServerName>
Converts to this type from the input type.
sourceimpl From<OwnedServerName> for Box<ServerName>
impl From<OwnedServerName> for Box<ServerName>
sourcefn from(a: OwnedServerName) -> Box<ServerName>
fn from(a: OwnedServerName) -> Box<ServerName>
Converts to this type from the input type.
sourceimpl FromStr for OwnedServerName
impl FromStr for OwnedServerName
sourceimpl Hash for OwnedServerName
impl Hash for OwnedServerName
sourceimpl Ord for OwnedServerName
impl Ord for OwnedServerName
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<&ServerName> for OwnedServerName
impl PartialEq<&ServerName> for OwnedServerName
sourcefn eq(&self, other: &&ServerName) -> bool
fn eq(&self, other: &&ServerName) -> bool
sourceimpl PartialEq<Arc<ServerName>> for OwnedServerName
impl PartialEq<Arc<ServerName>> for OwnedServerName
sourcefn eq(&self, other: &Arc<ServerName>) -> bool
fn eq(&self, other: &Arc<ServerName>) -> bool
sourceimpl PartialEq<Box<ServerName, Global>> for OwnedServerName
impl PartialEq<Box<ServerName, Global>> for OwnedServerName
sourcefn eq(&self, other: &Box<ServerName>) -> bool
fn eq(&self, other: &Box<ServerName>) -> bool
sourceimpl PartialEq<OwnedServerName> for &ServerName
impl PartialEq<OwnedServerName> for &ServerName
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for &str
impl PartialEq<OwnedServerName> for &str
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for Arc<ServerName>
impl PartialEq<OwnedServerName> for Arc<ServerName>
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for Box<ServerName>
impl PartialEq<OwnedServerName> for Box<ServerName>
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for OwnedServerName
impl PartialEq<OwnedServerName> for OwnedServerName
sourceimpl PartialEq<OwnedServerName> for ServerName
impl PartialEq<OwnedServerName> for ServerName
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for String
impl PartialEq<OwnedServerName> for String
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<OwnedServerName> for str
impl PartialEq<OwnedServerName> for str
sourcefn eq(&self, other: &OwnedServerName) -> bool
fn eq(&self, other: &OwnedServerName) -> bool
sourceimpl PartialEq<ServerName> for OwnedServerName
impl PartialEq<ServerName> for OwnedServerName
sourcefn eq(&self, other: &ServerName) -> bool
fn eq(&self, other: &ServerName) -> bool
sourceimpl PartialOrd<OwnedServerName> for OwnedServerName
impl PartialOrd<OwnedServerName> for OwnedServerName
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl Serialize for OwnedServerName
impl Serialize for OwnedServerName
sourceimpl TryFrom<&str> for OwnedServerName
impl TryFrom<&str> for OwnedServerName
sourceimpl TryFrom<String> for OwnedServerName
impl TryFrom<String> for OwnedServerName
impl Eq for OwnedServerName
Auto Trait Implementations
impl RefUnwindSafe for OwnedServerName
impl Send for OwnedServerName
impl Sync for OwnedServerName
impl Unpin for OwnedServerName
impl UnwindSafe for OwnedServerName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.