pub struct WorkerServiceClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl WorkerServiceClient
impl WorkerServiceClient
pub fn new(channel: Channel) -> Self
pub fn run_server_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<ServerArgs>, ClientDuplexReceiver<ServerStatus>)>
pub fn run_server( &self, ) -> Result<(ClientDuplexSender<ServerArgs>, ClientDuplexReceiver<ServerStatus>)>
pub fn run_client_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<ClientArgs>, ClientDuplexReceiver<ClientStatus>)>
pub fn run_client( &self, ) -> Result<(ClientDuplexSender<ClientArgs>, ClientDuplexReceiver<ClientStatus>)>
pub fn core_count_opt( &self, req: &CoreRequest, opt: CallOption, ) -> Result<CoreResponse>
pub fn core_count(&self, req: &CoreRequest) -> Result<CoreResponse>
pub fn core_count_async_opt( &self, req: &CoreRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<CoreResponse>>
pub fn core_count_async( &self, req: &CoreRequest, ) -> Result<ClientUnaryReceiver<CoreResponse>>
pub fn quit_worker_opt(&self, req: &Void, opt: CallOption) -> Result<Void>
pub fn quit_worker(&self, req: &Void) -> Result<Void>
pub fn quit_worker_async_opt( &self, req: &Void, opt: CallOption, ) -> Result<ClientUnaryReceiver<Void>>
pub fn quit_worker_async(&self, req: &Void) -> Result<ClientUnaryReceiver<Void>>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for WorkerServiceClient
impl Clone for WorkerServiceClient
Source§fn clone(&self) -> WorkerServiceClient
fn clone(&self) -> WorkerServiceClient
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 moreAuto Trait Implementations§
impl Freeze for WorkerServiceClient
impl !RefUnwindSafe for WorkerServiceClient
impl Send for WorkerServiceClient
impl Sync for WorkerServiceClient
impl Unpin for WorkerServiceClient
impl !UnwindSafe for WorkerServiceClient
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