Struct nakamoto_node::Client
source · [−]pub struct Client<R>where
R: Reactor,{ /* private fields */ }Expand description
A light-client process.
Implementations
sourceimpl<R> Client<R>where
R: Reactor,
Publisher<Event>: Publisher<Event>,
impl<R> Client<R>where
R: Reactor,
Publisher<Event>: Publisher<Event>,
sourcepub fn seed<S>(&mut self, seeds: Vec<S, Global>) -> Result<(), Error>where
S: ToSocketAddrs,
pub fn seed<S>(&mut self, seeds: Vec<S, Global>) -> Result<(), Error>where
S: ToSocketAddrs,
Seed the client’s address book with peer addresses.
sourcepub fn run(self, config: Config) -> Result<(), Error>
pub fn run(self, config: Config) -> Result<(), Error>
Start the client process. This function is meant to be run in its own thread.
Auto Trait Implementations
impl<R> !RefUnwindSafe for Client<R>
impl<R> Send for Client<R>where
R: Send,
impl<R> Sync for Client<R>where
R: Sync,
impl<R> Unpin for Client<R>where
R: Unpin,
impl<R> !UnwindSafe for Client<R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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