Enum internet2::transport::socket_addr::LocalSocketAddr
source · [−]pub enum LocalSocketAddr {
Zmq(ZmqSocketAddr),
Posix(String),
}
Expand description
Represents a connection that requires the other peer to be present on the same machine as a connecting peer
Variants
Zmq(ZmqSocketAddr)
Microservices connected using ZeroMQ protocol locally
Posix(String)
Local node operating as a separate process or threads connected with unencrypted POSIX file I/O (like in c-lightning)
Trait Implementations
sourceimpl Accept for LocalSocketAddr
impl Accept for LocalSocketAddr
sourceimpl Clone for LocalSocketAddr
impl Clone for LocalSocketAddr
sourcefn clone(&self) -> LocalSocketAddr
fn clone(&self) -> LocalSocketAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Connect for LocalSocketAddr
impl Connect for LocalSocketAddr
sourceimpl Debug for LocalSocketAddr
impl Debug for LocalSocketAddr
sourceimpl Display for LocalSocketAddr
impl Display for LocalSocketAddr
sourceimpl From<LocalSocketAddr> for NodeAddr
impl From<LocalSocketAddr> for NodeAddr
sourcefn from(addr: LocalSocketAddr) -> Self
fn from(addr: LocalSocketAddr) -> Self
Converts to this type from the input type.
sourceimpl FromStr for LocalSocketAddr
impl FromStr for LocalSocketAddr
sourceimpl Hash for LocalSocketAddr
impl Hash for LocalSocketAddr
sourceimpl Ord for LocalSocketAddr
impl Ord for LocalSocketAddr
sourceimpl PartialEq<LocalSocketAddr> for LocalSocketAddr
impl PartialEq<LocalSocketAddr> for LocalSocketAddr
sourcefn eq(&self, other: &LocalSocketAddr) -> bool
fn eq(&self, other: &LocalSocketAddr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LocalSocketAddr) -> bool
fn ne(&self, other: &LocalSocketAddr) -> bool
This method tests for !=
.
sourceimpl PartialOrd<LocalSocketAddr> for LocalSocketAddr
impl PartialOrd<LocalSocketAddr> for LocalSocketAddr
sourcefn partial_cmp(&self, other: &LocalSocketAddr) -> Option<Ordering>
fn partial_cmp(&self, other: &LocalSocketAddr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StrictDecode for LocalSocketAddr
impl StrictDecode for LocalSocketAddr
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
sourceimpl StrictEncode for LocalSocketAddr
impl StrictEncode for LocalSocketAddr
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
sourceimpl ToNodeAddr for LocalSocketAddr
impl ToNodeAddr for LocalSocketAddr
sourcefn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>
fn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>
Constructs NodeAddr
from an internal data with a default port
put in place when the port details were not given is such structures
as PartialNodeAddr
Read more
sourceimpl TryFrom<PartialNodeAddr> for LocalSocketAddr
impl TryFrom<PartialNodeAddr> for LocalSocketAddr
sourceimpl TryFrom<Url> for LocalSocketAddr
impl TryFrom<Url> for LocalSocketAddr
sourceimpl UrlString for LocalSocketAddr
impl UrlString for LocalSocketAddr
sourcefn url_scheme(&self) -> &'static str
fn url_scheme(&self) -> &'static str
Returns full URL scheme string (i.e. including :
or ://
parts)
corresponding to the provided address Read more
sourcefn to_url_string(&self) -> String
fn to_url_string(&self) -> String
Returns URL string representation for a given node or socket address. If
you need full URL address, please use Url::from()
instead (this
will require url
feature for LNP/BP Core Library). Read more
impl Eq for LocalSocketAddr
impl StructuralEq for LocalSocketAddr
impl StructuralPartialEq for LocalSocketAddr
Auto Trait Implementations
impl RefUnwindSafe for LocalSocketAddr
impl Send for LocalSocketAddr
impl Sync for LocalSocketAddr
impl Unpin for LocalSocketAddr
impl UnwindSafe for LocalSocketAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more