[−][src]Enum lnpbp::lnp::transport::zmqsocket::ZmqType
API type for node-to-node communications used by ZeroMQ
Variants (Non-exhaustive)
Pure peer-to-peer communications done with PUSH/PULL pair of ZMQ
sockets. Each node can send unordered set of messages and does not
wait for a response.
This part represents listening socket (zmq::SocketType::PULL
)
Pure peer-to-peer communications done with PUSH/PULL pair of ZMQ
sockets. Each node can send unordered set of messages and does not
wait for a response.
This part represents connected socket (zmq::SocketType::PUSH
)
Remote procedure call communications done with REQ/REP pair of ZMQ
sockets. Two roles: client and server; client sends requests and awaits
for client responses.
This part represents client-size socket (zmq::SocketType::REQ
)
Remote procedure call communications done with REQ/REP pair of ZMQ
sockets. Two roles: client and server; client sends requests and awaits
for client responses.
This part represents client-size socket (zmq::SocketType::REP
)
Subscription API done with SUB/PUB pair of ZMQ sockets. Two roles:
publisher (server) and subscriber (client); subscriber awaits for
messages from publisher and does not communicates back.
This part represents publisher part (zmq::SocketType::PUB
)
Subscription API done with SUB/PUB pair of ZMQ sockets. Two roles:
publisher (server) and subscriber (client); subscriber awaits for
messages from publisher and does not communicates back.
This part represents subscriber part (zmq::SocketType::SUB
)
Message bus: each message has a receiver and sender, and multiple peers
may communicate directly with each other in asynchronous mode.
Represents zmq::SocketType::ROUTER
socket which is bind to
Message bus: each message has a receiver and sender, and multiple peers
may communicate directly with each other in asynchronous mode.
Represents zmq::SocketType::ROUTER
socket wich is connected to
Implementations
impl ZmqType
[src]
pub fn socket_type(&self) -> SocketType
[src]
Returns zmq::SocketType
corresponding to the given [ApiType
]
pub fn api_name(&self) -> String
[src]
Returns name for the used ZMQ API type that can be used as a part of URL query
Trait Implementations
impl Clone for ZmqType
[src]
impl Copy for ZmqType
[src]
impl Debug for ZmqType
[src]
impl Display for ZmqType
[src]
impl Eq for ZmqType
[src]
impl FromStr for ZmqType
[src]
type Err = UnknownApiType
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for ZmqType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ZmqType
[src]
fn cmp(&self, other: &ZmqType) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ZmqType> for ZmqType
[src]
impl PartialOrd<ZmqType> for ZmqType
[src]
fn partial_cmp(&self, other: &ZmqType) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ZmqType
[src]
impl StructuralPartialEq for ZmqType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZmqType
impl Send for ZmqType
impl Sync for ZmqType
impl Unpin for ZmqType
impl UnwindSafe for ZmqType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,