[][src]Enum lnpbp::lnp::transport::RemoteAddr

#[non_exhaustive]pub enum RemoteAddr {
    Embedded,
    Inproc(String),
    Ipc(PathBuf),
    File(PathBuf),
    Tcp(InetSocketAddr),
    Udp(InetSocketAddr),
    Smtp(InetSocketAddr),
    Websocket(InetSocketAddr),
}

Represents a connection to a generic node operating with LNP protocol

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Embedded

Direct access to LNP API methods without any serialization/deserialization of data structures

Inproc(String)

Local node operating as a separate thread, connected with unencrypted ZMQ inproc socket, utilizing POSIX memory sharing (and not POSIX sockets), i.e. mutexes, semaphores etc.

Ipc(PathBuf)

Local node operating as a separate process, connected with
unencrypted ZMQ ipc POSIX/UNIX socket (using standard POSIX I/O).

File(PathBuf)

Local node operating as a separate process, connected with unencrypted POSIX file I/O (like in c-lightning)

Standard TCP socket connection required to use end-to-end encryption, that may be served either over plain IP, IPSec or Tor v2 and v3

Standard UDP socket connection required to use end-to-end encryption, that may be served either over plain IP, IPSec or utilize UDP hole punching

SMTP connection: asynchronous end-to-end-over SMTP information transfer which is usefull for ultra-low bandwidth non-real-time connections like satellite networks

Websocket(InetSocketAddr)

End-to-end ecnruption over web connection: think of this as LN protocol streamed over Websocket

Trait Implementations

impl Clone for RemoteAddr[src]

impl Debug for RemoteAddr[src]

impl Display for RemoteAddr[src]

impl Eq for RemoteAddr[src]

impl PartialEq<RemoteAddr> for RemoteAddr[src]

impl StructuralEq for RemoteAddr[src]

impl StructuralPartialEq for RemoteAddr[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,