[−][src]Struct nimiq_network_primitives::address::peer_uri::PeerUri
Methods
impl PeerUri
[src]
pub fn new_wss(
hostname: String,
port: Option<u16>,
peer_id: Option<String>,
public_key: Option<String>
) -> PeerUri
[src]
hostname: String,
port: Option<u16>,
peer_id: Option<String>,
public_key: Option<String>
) -> PeerUri
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]
fn from(peer_address: PeerAddress) -> 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.
fn from_str(s: &str) -> Result<Self, PeerUriError>
[src]
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self