[][src]Struct nimiq_network_primitives::address::peer_uri::PeerUri

pub struct PeerUri { /* fields omitted */ }

Methods

impl PeerUri[src]

pub fn new_wss(
    hostname: String,
    port: Option<u16>,
    peer_id: Option<String>,
    public_key: Option<String>
) -> PeerUri
[src]

pub fn from_url(url: Url) -> Result<Self, PeerUriError>[src]

pub fn protocol(&self) -> Protocol[src]

pub fn hostname(&self) -> Option<&String>[src]

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

pub fn peer_id(&self) -> Option<&String>[src]

pub fn public_key(&self) -> Option<&String>[src]

pub fn as_seed_peer_address(&self) -> Result<PeerAddress, PeerUriError>[src]

Trait Implementations

impl From<PeerAddress> for PeerUri[src]

impl Clone for PeerUri[src]

impl<'a> Display for PeerUri[src]

impl Debug for PeerUri[src]

impl<'a> FromStr for PeerUri[src]

type Err = PeerUriError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for PeerUri

impl Sync for PeerUri

impl Unpin for PeerUri

impl UnwindSafe for PeerUri

impl RefUnwindSafe for PeerUri

Blanket Implementations

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

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

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, 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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T