pub struct NodeChannel {
pub network_requests: (Sender<NetworkRequest>, Receiver<NetworkRequest>),
pub internal_requests: (Sender<InternalRequest>, Receiver<InternalRequest>),
pub api_requests: (Sender<ExternalMessage>, Receiver<ExternalMessage>),
pub network_events: (Sender<NetworkEvent>, Receiver<NetworkEvent>),
pub internal_events: (Sender<InternalEvent>, Receiver<InternalEvent>),
}
Channel between the NodeHandler
and events source.
Channel for network requests.
Channel for timeout requests.
Channel for api requests.
Channel for network events.
Channel for internal events.
Creates NodeChannel
with the given pool capacities.
Returns the channel for sending timeouts, networks and api requests.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static