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 FromStr for OwnedServerName
impl FromStr for OwnedServerName
sourceimpl Hash for OwnedServerName
impl Hash for OwnedServerName
sourceimpl Ord for OwnedServerName
impl Ord for OwnedServerName
sourceimpl PartialEq<&ServerName> for OwnedServerName
impl PartialEq<&ServerName> for OwnedServerName
sourceimpl PartialEq<&str> for OwnedServerName
impl PartialEq<&str> for OwnedServerName
sourceimpl PartialEq<Box<ServerName, Global>> for OwnedServerName
impl PartialEq<Box<ServerName, Global>> for OwnedServerName
sourceimpl PartialEq<OwnedServerName> for OwnedServerName
impl PartialEq<OwnedServerName> for OwnedServerName
sourceimpl PartialEq<OwnedServerName> for str
impl PartialEq<OwnedServerName> for str
sourceimpl PartialEq<OwnedServerName> for &str
impl PartialEq<OwnedServerName> for &str
sourceimpl PartialEq<OwnedServerName> for String
impl PartialEq<OwnedServerName> for String
sourceimpl PartialEq<OwnedServerName> for ServerName
impl PartialEq<OwnedServerName> for ServerName
sourceimpl PartialEq<OwnedServerName> for &ServerName
impl PartialEq<OwnedServerName> for &ServerName
sourceimpl PartialEq<OwnedServerName> for Box<ServerName>
impl PartialEq<OwnedServerName> for Box<ServerName>
sourceimpl PartialEq<ServerName> for OwnedServerName
impl PartialEq<ServerName> for OwnedServerName
sourceimpl PartialEq<String> for OwnedServerName
impl PartialEq<String> for OwnedServerName
sourceimpl PartialEq<str> for OwnedServerName
impl PartialEq<str> for OwnedServerName
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more