pub struct NodeServiceClient<Stub = Channel<NodeServiceRequest, NodeServiceResponse>>(/* private fields */);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
Source§impl NodeServiceClient
impl NodeServiceClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<NodeServiceRequest, NodeServiceResponse, T>>
pub fn new<T>( config: Config, transport: T, ) -> NewClient<Self, RequestDispatch<NodeServiceRequest, NodeServiceResponse, T>>
Returns a new client stub that sends requests over the given transport.
Source§impl<Stub> NodeServiceClient<Stub>
impl<Stub> NodeServiceClient<Stub>
pub fn status( &self, ctx: Context, ) -> impl Future<Output = Result<Result<(), AgentError>, RpcError>> + '_
pub fn set_log_level( &self, ctx: Context, verbosity: u8, ) -> impl Future<Output = Result<Result<(), AgentError>, RpcError>> + '_
pub fn get_block_lite( &self, ctx: Context, block_hash: String, ) -> impl Future<Output = Result<Result<Option<SnarkOSLiteBlock>, AgentError>, RpcError>> + '_
pub fn find_transaction( &self, ctx: Context, tx_id: String, ) -> impl Future<Output = Result<Result<Option<String>, AgentError>, RpcError>> + '_
Trait Implementations§
Source§impl<Stub: Clone> Clone for NodeServiceClient<Stub>
impl<Stub: Clone> Clone for NodeServiceClient<Stub>
Source§fn clone(&self) -> NodeServiceClient<Stub>
fn clone(&self) -> NodeServiceClient<Stub>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Stub: Debug> Debug for NodeServiceClient<Stub>
impl<Stub: Debug> Debug for NodeServiceClient<Stub>
Source§impl<Stub> From<Stub> for NodeServiceClient<Stub>
impl<Stub> From<Stub> for NodeServiceClient<Stub>
Auto Trait Implementations§
impl<Stub> Freeze for NodeServiceClient<Stub>where
Stub: Freeze,
impl<Stub> RefUnwindSafe for NodeServiceClient<Stub>where
Stub: RefUnwindSafe,
impl<Stub> Send for NodeServiceClient<Stub>where
Stub: Send,
impl<Stub> Sync for NodeServiceClient<Stub>where
Stub: Sync,
impl<Stub> Unpin for NodeServiceClient<Stub>where
Stub: Unpin,
impl<Stub> UnwindSafe for NodeServiceClient<Stub>where
Stub: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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