[][src]Struct ruma::ServerName

#[repr(transparent)]pub struct ServerName(_);

A Matrix-spec compliant server name.

Implementations

impl ServerName[src]

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

Creates a string slice from this ServerName.

pub fn as_bytes(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Creates a byte slice from this ServerName.

Trait Implementations

impl AsRef<str> for ServerName[src]

impl Debug for ServerName[src]

impl Display for ServerName[src]

impl Eq for ServerName[src]

impl<'_> From<&'_ ServerName> for Box<ServerName, Global>[src]

impl Hash for ServerName[src]

impl Ord for ServerName[src]

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

impl PartialEq<ServerName> for ServerName[src]

impl PartialEq<String> for ServerName[src]

impl PartialEq<str> for ServerName[src]

impl PartialOrd<ServerName> for ServerName[src]

impl Serialize for ServerName[src]

impl StructuralEq for ServerName[src]

impl StructuralPartialEq for ServerName[src]

impl ToOwned for ServerName[src]

type Owned = Box<ServerName, Global>

The resulting type after obtaining ownership.

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]