Skip to main content

TestService

Trait TestService 

Source
pub trait TestService:
    Send
    + Sync
    + DynClone {
    // Provided methods
    fn lock_time_skipping(
        &mut self,
        _request: Request<LockTimeSkippingRequest>,
    ) -> BoxFuture<'_, Result<Response<LockTimeSkippingResponse>, Status>> { ... }
    fn unlock_time_skipping(
        &mut self,
        _request: Request<UnlockTimeSkippingRequest>,
    ) -> BoxFuture<'_, Result<Response<UnlockTimeSkippingResponse>, Status>> { ... }
    fn sleep(
        &mut self,
        _request: Request<SleepRequest>,
    ) -> BoxFuture<'_, Result<Response<SleepResponse>, Status>> { ... }
    fn sleep_until(
        &mut self,
        _request: Request<SleepUntilRequest>,
    ) -> BoxFuture<'_, Result<Response<SleepResponse>, Status>> { ... }
    fn unlock_time_skipping_with_sleep(
        &mut self,
        _request: Request<SleepRequest>,
    ) -> BoxFuture<'_, Result<Response<SleepResponse>, Status>> { ... }
    fn get_current_time(
        &mut self,
        _request: Request<()>,
    ) -> BoxFuture<'_, Result<Response<GetCurrentTimeResponse>, Status>> { ... }
}
Expand description

Trait version of TestServiceClient

Provided Methods§

Implementations on Foreign Types§

Source§

impl<T> TestService for TestServiceClient<T>
where T: GrpcService<Body> + Clone + Send + Sync + 'static, T::ResponseBody: Body<Data = Bytes> + Send + 'static, T::Error: Into<StdError>, <T::ResponseBody as Body>::Error: Into<StdError> + Send, <T as GrpcService<Body>>::Future: Send,

Implementors§

Source§

impl<RC> TestService for RC
where RC: RawGrpcCaller + RawClientProducer + Clone + Unpin,