pub struct AgentNodeServiceClient<Stub = Channel<AgentNodeServiceRequest, AgentNodeServiceResponse>>(/* private fields */);Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
Source§impl AgentNodeServiceClient
impl AgentNodeServiceClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<AgentNodeServiceRequest, AgentNodeServiceResponse, T>>
pub fn new<T>( config: Config, transport: T, ) -> NewClient<Self, RequestDispatch<AgentNodeServiceRequest, AgentNodeServiceResponse, T>>
Returns a new client stub that sends requests over the given transport.
Source§impl<Stub> AgentNodeServiceClient<Stub>
impl<Stub> AgentNodeServiceClient<Stub>
pub fn post_block_info( &self, ctx: Context, info: SnarkOSBlockInfo, ) -> impl Future<Output = Result<Result<(), ()>, RpcError>> + '_
pub fn post_status( &self, ctx: Context, status: SnarkOSStatus, ) -> impl Future<Output = Result<Result<(), ()>, RpcError>> + '_
Trait Implementations§
Source§impl<Stub: Clone> Clone for AgentNodeServiceClient<Stub>
impl<Stub: Clone> Clone for AgentNodeServiceClient<Stub>
Source§fn clone(&self) -> AgentNodeServiceClient<Stub>
fn clone(&self) -> AgentNodeServiceClient<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 AgentNodeServiceClient<Stub>
impl<Stub: Debug> Debug for AgentNodeServiceClient<Stub>
Source§impl<Stub> From<Stub> for AgentNodeServiceClient<Stub>
impl<Stub> From<Stub> for AgentNodeServiceClient<Stub>
Auto Trait Implementations§
impl<Stub> Freeze for AgentNodeServiceClient<Stub>where
Stub: Freeze,
impl<Stub> RefUnwindSafe for AgentNodeServiceClient<Stub>where
Stub: RefUnwindSafe,
impl<Stub> Send for AgentNodeServiceClient<Stub>where
Stub: Send,
impl<Stub> Sync for AgentNodeServiceClient<Stub>where
Stub: Sync,
impl<Stub> Unpin for AgentNodeServiceClient<Stub>where
Stub: Unpin,
impl<Stub> UnwindSafe for AgentNodeServiceClient<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