pub struct Client {
pub requester: Requester,
pub info_rx: Receiver<Info>,
pub warn_rx: UnboundedReceiver<Warning>,
pub event_rx: UnboundedReceiver<Event>,
}Expand description
A Client allows for communication with a running node.
Fields§
§requester: RequesterSend events to a node, such as broadcasting a transaction.
info_rx: Receiver<Info>Receive informational messages from the node.
warn_rx: UnboundedReceiver<Warning>Receive warning messages from a node.
event_rx: UnboundedReceiver<Event>Receive Event from a node to act on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more