Struct scheduling::net::rpc::worker_rpc_client::WorkerRpcClient
source · pub struct WorkerRpcClient {
server_port: u16,
host_clients: DashMap<HostId, WorkerApiClient<Channel>>,
}Fields§
§server_port: u16§host_clients: DashMap<HostId, WorkerApiClient<Channel>>Implementations§
source§impl WorkerRpcClient
impl WorkerRpcClient
pub fn new(server_port: u16) -> Self
async fn get_client( &self, host_id: &HostId ) -> Result<WorkerApiClient<Channel>, String>
pub async fn forward_task_completion( &self, task_completion_notification: TaskCompletionNotification, host_idx: HostIdx, target_host: &HostId ) -> Result<(), String>
pub async fn schedule_nando( &self, activation_intent_request: NandoActivationIntent, target_host: &HostId ) -> Result<(Vec<ActivationOutput>, Vec<(ObjectId, ObjectVersion)>), String>
pub async fn forward_spawned_task( &self, spawned_task: SpawnedTask, target_host: &HostId ) -> Result<NandoActivationResolution, String>
pub async fn schedule_task_graph( &self, spawned_tasks: &Vec<SpawnedTask>, target_host: &HostId ) -> Result<Vec<NandoActivationResolution>, String>
pub async fn assume_ownership( &self, assume_ownership_request: AssumeOwnershipRequest, target_host: &HostId ) -> Result<Vec<u8>, String>
pub async fn move_ownership( &self, move_ownership_request: MoveOwnershipRequest, target_host: &HostId ) -> Result<MoveOwnershipResponse, String>
pub async fn add_cache_mapping( &self, original_object: &IPtr, cache_object: &IPtr, version: ObjectVersion, target_host: &HostId, own_idx: HostIdx ) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerRpcClient
impl Send for WorkerRpcClient
impl Sync for WorkerRpcClient
impl Unpin for WorkerRpcClient
impl !UnwindSafe for WorkerRpcClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request