/// Get the status of the rpc call.
Get the status of the rpc call.
Get the status of the rpc call .
pub fn rpc_status(&self) -> RpcStatus {
        let status =
            unsafe { grpc_sys::grpcwrap_batch_context_recv_status_on_client_status(self.ctx) };
        let details = if status == RpcStatusCode::Ok {
            None
        } else {
            unsafe {
                let mut details_len = 0;
                let details_ptr = grpc_sys::grpcwrap_batch_context_recv_status_on_client_details(
                    self.ctx,
                    &mut details_len,
                );
                let details_slice = slice::from_raw_parts(details_ptr as *const _, details_len);
                Some(String::from_utf8_lossy(details_slice).into_owned())
            }
        };
        RpcStatus { status, details }
    }
pub fn rpc_status ( & self ) -> RpcStatus { let status = unsafe { grpc_sys :: grpcwrap_batch_context_recv_status_on_client_status ( self . ctx ) } ; let details = if status == RpcStatusCode :: Ok { None } else { unsafe { let mut details_len = 0 ; let details_ptr = grpc_sys :: grpcwrap_batch_context_recv_status_on_client_details ( self . ctx , & mut details_len , ) ; let details_slice = slice :: from_raw_parts ( details_ptr as * const _ , details_len ) ; Some ( String :: from_utf8_lossy ( details_slice ) . into_owned ( ) ) } } ; RpcStatus { status , details } }
Get the status of the rpc call.
Get the status of the rpc call .
&self