pub struct NodeRunnerAdapter { /* private fields */ }
Expand description
Adapter that implements NodeRunnerTrait for the actual NodeRunner
Implementations§
Source§impl NodeRunnerAdapter
impl NodeRunnerAdapter
pub fn new(node_runner: Arc<RwLock<NodeRunner>>) -> Self
Trait Implementations§
Source§impl Debug for NodeRunnerAdapter
impl Debug for NodeRunnerAdapter
Source§impl NodeRunnerTrait for NodeRunnerAdapter
impl NodeRunnerTrait for NodeRunnerAdapter
fn get_status( &self, ) -> Pin<Box<dyn Future<Output = Result<Value, Box<dyn Error + Send + Sync>>> + Send>>
fn get_connected_peers( &self, ) -> Pin<Box<dyn Future<Output = Vec<PeerInfo>> + Send>>
fn dial_peer( &self, address: String, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>>
fn disconnect_peer( &self, peer_id: &str, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>>
fn get_network_stats( &self, ) -> Pin<Box<dyn Future<Output = NetworkStats> + Send>>
fn shutdown( &self, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send>>
Auto Trait Implementations§
impl Freeze for NodeRunnerAdapter
impl !RefUnwindSafe for NodeRunnerAdapter
impl Send for NodeRunnerAdapter
impl Sync for NodeRunnerAdapter
impl Unpin for NodeRunnerAdapter
impl !UnwindSafe for NodeRunnerAdapter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more