[][src]Struct ruma_identifiers::server_name::ServerName

pub struct ServerName<T> { /* fields omitted */ }

A Matrix-spec compliant server name.

It is discouraged to use this type directly – instead use one of the aliases (ServerName and ServerNameRef) in the crate root.

Implementations

impl<T> ServerName<T> where
    T: AsRef<str>, 
[src]

pub fn as_ref(&self) -> ServerName<&str>[src]

Creates a reference to this ServerName.

impl<T: AsRef<str>> ServerName<T>[src]

pub fn as_str(&self) -> &str[src]

Creates a string slice from this ServerName

Trait Implementations

impl<T: AsRef<str>> AsRef<str> for ServerName<T>[src]

impl<T: Clone> Clone for ServerName<T>[src]

impl<T: Copy> Copy for ServerName<T>[src]

impl<T: Debug> Debug for ServerName<T>[src]

impl<'de> Deserialize<'de> for ServerName<Box<str>>[src]

impl<T: Display> Display for ServerName<T>[src]

impl<T: Eq> Eq for ServerName<T>[src]

impl<'a> From<&'a ServerName<Box<str>>> for ServerName<&'a str>[src]

impl From<ServerName<Box<str>>> for String[src]

impl<T: Hash> Hash for ServerName<T>[src]

impl<T: Ord> Ord for ServerName<T>[src]

impl<'_, T: AsRef<str>> PartialEq<&'_ str> for ServerName<T>[src]

impl<T: PartialEq> PartialEq<ServerName<T>> for ServerName<T>[src]

impl<'_, T: AsRef<str>> PartialEq<ServerName<T>> for &'_ str[src]

impl<T: AsRef<str>> PartialEq<ServerName<T>> for String[src]

impl<T: AsRef<str>> PartialEq<String> for ServerName<T>[src]

impl<T: PartialOrd> PartialOrd<ServerName<T>> for ServerName<T>[src]

impl<T: AsRef<str>> Serialize for ServerName<T>[src]

impl<'_> TryFrom<&'_ str> for ServerName<Box<str>>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a str> for ServerName<&'a str>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for ServerName<Box<str>>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for ServerName<T> where
    T: RefUnwindSafe

impl<T> Send for ServerName<T> where
    T: Send

impl<T> Sync for ServerName<T> where
    T: Sync

impl<T> Unpin for ServerName<T> where
    T: Unpin

impl<T> UnwindSafe for ServerName<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.