Struct shuttle_runtime::Alpha
source · pub struct Alpha<L, S> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<L, S> Runtime for Alpha<L, S>where
L: Loader<ProvisionerFactory, Service = S> + Send + 'static,
S: Service + Send + 'static,
impl<L, S> Runtime for Alpha<L, S>where L: Loader<ProvisionerFactory, Service = S> + Send + 'static, S: Service + Send + 'static,
source§fn load<'life0, 'async_trait>(
&'life0 self,
request: Request<LoadRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<LoadResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'async_trait>( &'life0 self, request: Request<LoadRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<LoadResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Load a service file to be ready to start it
source§fn start<'life0, 'async_trait>(
&'life0 self,
request: Request<StartRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<StartResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>( &'life0 self, request: Request<StartRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<StartResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Start a loaded service file
source§fn stop<'life0, 'async_trait>(
&'life0 self,
_request: Request<StopRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<StopResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>( &'life0 self, _request: Request<StopRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<StopResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Stop a started service
§type SubscribeStopStream = ReceiverStream<Result<SubscribeStopResponse, Status>>
type SubscribeStopStream = ReceiverStream<Result<SubscribeStopResponse, Status>>
Server streaming response type for the SubscribeStop method.
source§fn subscribe_stop<'life0, 'async_trait>(
&'life0 self,
_request: Request<SubscribeStopRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeStopStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_stop<'life0, 'async_trait>( &'life0 self, _request: Request<SubscribeStopRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeStopStream>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Channel to notify a service has been stopped
Auto Trait Implementations§
impl<L, S> !RefUnwindSafe for Alpha<L, S>
impl<L, S> Send for Alpha<L, S>where L: Send, S: Send,
impl<L, S> Sync for Alpha<L, S>where L: Send, S: Send,
impl<L, S> Unpin for Alpha<L, S>where L: Unpin, S: Unpin,
impl<L, S> !UnwindSafe for Alpha<L, S>
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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