pub trait UrlString {
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
fn url_scheme(&self) -> &'static str
fn url_scheme(&self) -> &'static str
Returns full URL scheme string (i.e. including :
or ://
parts)
corresponding to the provided address
fn to_url_string(&self) -> String
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).