[][src]Enum durs_network_documents::network_endpoint::EndpointEnum

pub enum EndpointEnum {
    V1(EndpointV1),
    V2(EndpointV2),
}

Endpoint

Variants

V1(EndpointV1)

Endpoint v1

V2(EndpointV2)

Endpoint v2

Methods

impl EndpointEnum[src]

pub fn api(&self) -> NetworkEndpointApi[src]

Accessors providing API name

pub fn node_uuid(&self) -> Option<NodeId>[src]

Accessors providing node unique identifier

pub fn pubkey(&self) -> PubKey[src]

Accessors providing node public key

pub fn port(&self) -> usize[src]

Accessors providing port number

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

Accessors providing raw format

pub fn status(&self) -> u32[src]

Accessors providing endpoint accessibility status

pub fn set_status(&mut self, new_status: u32)[src]

Set status

pub fn set_last_check(&mut self, new_last_check: u64)[src]

Set last_check

pub fn get_url(
    &self,
    get_protocol: bool,
    supported_ip_v6: bool
) -> Option<String>
[src]

Generate endpoint url

Trait Implementations

impl Eq for EndpointEnum[src]

impl Clone for EndpointEnum[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<EndpointEnum> for EndpointEnum[src]

impl ToString for EndpointEnum[src]

impl Hash for EndpointEnum[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for EndpointEnum[src]

impl Serialize for EndpointEnum[src]

impl<'de> Deserialize<'de> for EndpointEnum[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]