[][src]Trait internet2::UrlString

pub trait UrlString {
    pub fn url_scheme(&self) -> &'static str;
pub fn to_url_string(&self) -> String; }

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

Required methods

pub fn url_scheme(&self) -> &'static str[src]

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

pub fn to_url_string(&self) -> String[src]

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).

Loading content...

Implementors

impl UrlString for NodeAddr[src]

impl UrlString for PartialNodeAddr[src]

impl UrlString for LocalSocketAddr[src]

impl UrlString for RemoteSocketAddr[src]

impl UrlString for ZmqSocketAddr[src]

impl UrlString for RemoteNodeAddr[src]

Loading content...