Struct guppy_grpc::grpc_client::guppy_service::guppy_controller_server::GuppyControllerServer    
source · pub struct GuppyControllerServer<T: GuppyController> { /* private fields */ }Implementations§
source§impl<T: GuppyController> GuppyControllerServer<T>
 
impl<T: GuppyController> GuppyControllerServer<T>
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Trait Implementations§
source§impl<T: GuppyController> Clone for GuppyControllerServer<T>
 
impl<T: GuppyController> Clone for GuppyControllerServer<T>
source§impl<T: Debug + GuppyController> Debug for GuppyControllerServer<T>
 
impl<T: Debug + GuppyController> Debug for GuppyControllerServer<T>
source§impl<T: GuppyController> NamedService for GuppyControllerServer<T>
 
impl<T: GuppyController> NamedService for GuppyControllerServer<T>
source§impl<T, B> Service<Request<B>> for GuppyControllerServer<T>where
    T: GuppyController,
    B: HttpBody + Send + Sync + 'static,
    B::Error: Into<StdError> + Send + 'static,
 
impl<T, B> Service<Request<B>> for GuppyControllerServer<T>where T: GuppyController, B: HttpBody + Send + Sync + 'static, B::Error: Into<StdError> + Send + 'static,
§type Future = Pin<Box<dyn Future<Output = Result<<GuppyControllerServer<T> as Service<Request<B>>>::Response, <GuppyControllerServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
 
type Future = Pin<Box<dyn Future<Output = Result<<GuppyControllerServer<T> as Service<Request<B>>>::Response, <GuppyControllerServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
The future response value.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for GuppyControllerServer<T>
impl<T> Send for GuppyControllerServer<T>
impl<T> Sync for GuppyControllerServer<T>
impl<T> Unpin for GuppyControllerServer<T>
impl<T> !UnwindSafe for GuppyControllerServer<T>
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> Downcast for Twhere
    T: Any,
 
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
 
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert 
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
 
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert 
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
 
fn as_any(&self) -> &(dyn Any + 'static)
Convert 
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert 
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T, ReqBody, ResBody> GrpcService<ReqBody> for Twhere
    T: Service<Request<ReqBody>, Response = Response<ResBody>>,
    <T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + Sync + Send, Global>>,
    ResBody: Body + Body,
    <ResBody as Body>::Error: Into<Box<dyn Error + Sync + Send, Global>>,
 
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for Twhere T: Service<Request<ReqBody>, Response = Response<ResBody>>, <T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + Sync + Send, Global>>, ResBody: Body + Body, <ResBody as Body>::Error: Into<Box<dyn Error + Sync + Send, Global>>,
§type ResponseBody = ResBody
 
type ResponseBody = ResBody
Responses body given by the service.
source§fn poll_ready(
    &mut self,
    cx: &mut Context<'_>
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
 
fn poll_ready( &mut self, cx: &mut Context<'_> ) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
Returns 
Ready when the service is able to process requests. Read moresource§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> 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> 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, Request> ServiceExt<Request> for Twhere
    T: Service<Request> + ?Sized,
 
impl<T, Request> ServiceExt<Request> for Twhere T: Service<Request> + ?Sized,
source§fn ready(&mut self) -> Ready<'_, Self, Request>where
    Self: Sized,
 
fn ready(&mut self) -> Ready<'_, Self, Request>where Self: Sized,
Yields a mutable reference to the service when it is ready to accept a request.
source§fn ready_and(&mut self) -> Ready<'_, Self, Request>where
    Self: Sized,
 
fn ready_and(&mut self) -> Ready<'_, Self, Request>where Self: Sized,
👎Deprecated since 0.4.6: please use the 
ServiceExt::ready method insteadYields a mutable reference to the service when it is ready to accept a request.
source§fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where
    Self: Sized,
 
fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where Self: Sized,
Yields the service when it is ready to accept a request.
source§fn oneshot(self, req: Request) -> Oneshot<Self, Request>where
    Self: Sized,
 
fn oneshot(self, req: Request) -> Oneshot<Self, Request>where Self: Sized,
Consume this 
Service, calling with the providing request once it is ready.source§fn call_all<S>(self, reqs: S) -> CallAll<Self, S>where
    Self: Sized,
    Self::Error: Into<Box<dyn Error + Sync + Send, Global>>,
    S: Stream<Item = Request>,
 
fn call_all<S>(self, reqs: S) -> CallAll<Self, S>where Self: Sized, Self::Error: Into<Box<dyn Error + Sync + Send, Global>>, S: Stream<Item = Request>,
source§fn and_then<F>(self, f: F) -> AndThen<Self, F>where
    Self: Sized,
    F: Clone,
 
fn and_then<F>(self, f: F) -> AndThen<Self, F>where Self: Sized, F: Clone,
Executes a new future after this service’s future resolves. This does
not alter the behaviour of the 
poll_ready method. Read moresource§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>where
    Self: Sized,
    F: FnOnce(Self::Response) -> Response + Clone,
 
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>where Self: Sized, F: FnOnce(Self::Response) -> Response + Clone,
Maps this service’s response value to a different value. This does not
alter the behaviour of the 
poll_ready method. Read moresource§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>where
    Self: Sized,
    F: FnOnce(Self::Error) -> Error + Clone,
 
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>where Self: Sized, F: FnOnce(Self::Error) -> Error + Clone,
Maps this service’s error value to a different value. This does not
alter the behaviour of the 
poll_ready method. Read moresource§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>where
    Self: Sized,
    Error: From<Self::Error>,
    F: FnOnce(Result<Self::Response, Self::Error>) -> Result<Response, Error> + Clone,
 
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>where Self: Sized, Error: From<Self::Error>, F: FnOnce(Result<Self::Response, Self::Error>) -> Result<Response, Error> + Clone,
Maps this service’s result type (
Result<Self::Response, Self::Error>)
to a different value, regardless of whether the future succeeds or
fails. Read moresource§fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>where
    Self: Sized,
    F: FnMut(NewRequest) -> Request + Clone,
 
fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>where Self: Sized, F: FnMut(NewRequest) -> Request + Clone,
Composes a function in front of the service. Read more
§impl<SS, SP> SupersetOf<SS> for SPwhere
    SS: SubsetOf<SP>,
 
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
 
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct 
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
 
fn is_in_subset(&self) -> bool
Checks if 
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
 
fn to_subset_unchecked(&self) -> SS
Use with care! Same as 
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
 
fn from_subset(element: &SS) -> SP
The inclusion map: converts 
self to the equivalent element of its superset.