Trait internet2::UrlString

source ·
pub trait UrlString {
    // Required methods
    fn url_scheme(&self) -> &'static str;
    fn to_url_string(&self) -> String;
}
Expand description

Trait used by different address types (transport-, session- and presentation-based) for getting scheme part of the URL

Required Methods§

source

fn url_scheme(&self) -> &'static str

Returns full URL scheme string (i.e. including : or :// parts) corresponding to the provided address

source

fn to_url_string(&self) -> String

Returns URL string representation for a given node or socket address. If you need full URL address, please use Url::from() instead (this will require url feature for LNP/BP Core Library).

Implementors§