Struct tendermint_rpc::Url[][src]

pub struct Url { /* fields omitted */ }

A uniform resource locator (URL), with support for only those schemes/protocols supported by Tendermint RPC clients.

Re-implements relevant parts of url::Url’s interface with convenience mechanisms for transformation to/from other types.

Implementations

impl Url[src]

pub fn is_secure(&self) -> bool[src]

Returns whether or not this URL represents a connection to a secure endpoint.

pub fn scheme(&self) -> Scheme[src]

Get the scheme associated with this URL.

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

Get the username associated with this URL, if any.

pub fn password(&self) -> Option<&str>[src]

Get the password associated with this URL, if any.

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

Get the host associated with this URL.

pub fn port(&self) -> u16[src]

Get the port associated with this URL.

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

Get this URL’s path.

Trait Implementations

impl Clone for Url[src]

impl Debug for Url[src]

impl<'de> Deserialize<'de> for Url[src]

impl Display for Url[src]

impl FromStr for Url[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Url[src]

impl TryFrom<Url> for HttpClientUrl[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Url> for WebSocketClientUrl[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Url> for Url[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Url

impl Send for Url

impl Sync for Url

impl Unpin for Url

impl UnwindSafe for Url

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> Conv for T

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

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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> TryConv for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,