pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
sourcepub async fn call_rpc(
&self,
service_method: String,
request: RequestMessage
) -> Result<ReplyMessage>
pub async fn call_rpc(
&self,
service_method: String,
request: RequestMessage
) -> Result<ReplyMessage>
Error type and meaning
- Not connected: The client did not have a chance to send the request because the network is down.
- Permission denied: The network does not allow the client to send requests.
- Broken pipe: The network no longer allows the client to send requests.
- Not found: The network could not find the target server.
- Invalid input: The server could not find the service / method to call.
- Connection reset: The server received the request, but decided to stop responding.
- Connection aborted: The client will not receive a reply because the the connection is closed by the network.
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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