pub struct RefitServiceImpl { /* private fields */ }Implementations§
Source§impl RefitServiceImpl
impl RefitServiceImpl
pub fn new(backend: Arc<dyn RefitBackend>) -> Self
Trait Implementations§
Source§impl Clone for RefitServiceImpl
impl Clone for RefitServiceImpl
Source§impl RefitService for RefitServiceImpl
impl RefitService for RefitServiceImpl
Source§fn create_trainer_mesh<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateTrainerMeshRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateTrainerMeshResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_trainer_mesh<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateTrainerMeshRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateTrainerMeshResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
External APIs: called by the RL framework orchestrator.
fn get_trainer_mesh<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTrainerMeshRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetTrainerMeshResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_trainer_mesh<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateTrainerMeshRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateTrainerMeshResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_trainer_mesh<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteTrainerMeshRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteTrainerMeshResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn register_worker<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterWorkerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterWorkerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_worker<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterWorkerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterWorkerResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Internal APIs: called by ModelExpress worker clients, not by the RL
framework orchestrator.
fn create_weight_version<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateWeightVersionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateWeightVersionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_weight_version<'life0, 'async_trait>(
&'life0 self,
request: Request<GetWeightVersionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetWeightVersionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_weight_version_state<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateWeightVersionStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateWeightVersionStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn delete_weight_version<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteWeightVersionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteWeightVersionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_weight_version<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteWeightVersionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteWeightVersionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Cancel a STAGING version or retire a READY version.
fn list_weight_versions<'life0, 'async_trait>(
&'life0 self,
request: Request<ListWeightVersionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListWeightVersionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_weight_version_shard<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateWeightVersionShardRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateWeightVersionShardResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_weight_version_shards<'life0, 'async_trait>(
&'life0 self,
request: Request<ListWeightVersionShardsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListWeightVersionShardsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_weight_version_shard<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteWeightVersionShardRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteWeightVersionShardResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn register_version_lease<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterVersionLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterVersionLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_version_lease<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterVersionLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterVersionLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
A live lease protects the version source while a generator installs it.
Re-registering the same lease owner renews its expiry.
fn delete_version_lease<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteVersionLeaseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteVersionLeaseResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for RefitServiceImpl
impl !UnwindSafe for RefitServiceImpl
impl Forget for RefitServiceImpl
impl Freeze for RefitServiceImpl
impl Move for RefitServiceImpl
impl Send for RefitServiceImpl
impl Sync for RefitServiceImpl
impl Unpin for RefitServiceImpl
impl UnsafeUnpin for RefitServiceImpl
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§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::RequestSource§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