Enum dvm_net::endpoint::Endpoint[][src]

pub enum Endpoint {
    Http(Http),
    Ipc(Ipc),
}

Variants

Http(Http)
Ipc(Ipc)

Implementations

impl Endpoint[src]

pub async fn connect(self) -> Result<Channel, Box<dyn Error>>[src]

pub fn is_ipc(&self) -> bool[src]

pub fn is_http(&self) -> bool[src]

Trait Implementations

impl Clone for Endpoint[src]

impl Debug for Endpoint[src]

impl Display for Endpoint[src]

impl FromStr for Endpoint[src]

type Err = StdError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Create Endpoint from URI. Supports http and ipc schemes.

e.g.:

  • ipc://tmp/dir/file (absolute path)
  • ipc://./dir/file (relative path with . and ..)
  • ipc://~/dir/file (relative to $HOME)
  • http://[::1]:50042
  • http://127.0.0.1:50042
  • http://example.com:50042

impl TryFrom<Uri> for Endpoint[src]

type Error = StdError

The type returned in the event of a conversion error.

impl<'a> TryInto<&'a Path> for &'a Endpoint[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<SocketAddr> for Endpoint[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<Uri> for Endpoint[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Endpoint

impl Send for Endpoint

impl Sync for Endpoint

impl Unpin for Endpoint

impl UnwindSafe for Endpoint

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]