pub struct LambdaServer<L = Identity> { /* private fields */ }Implementations§
Source§impl LambdaServer
impl LambdaServer
Source§impl<L> LambdaServer<L>
impl<L> LambdaServer<L>
pub fn layer<NewLayer>( self, new_layer: NewLayer, ) -> LambdaServer<Stack<NewLayer, L>>
pub fn add_service<S>(self, svc: S) -> LambdaRouter<L>where
S: Service<Request<Body>, Error = Infallible> + NamedService + Clone + Send + Sync + 'static,
S::Response: IntoResponse,
S::Future: Send + 'static,
L: Clone,
Trait Implementations§
Source§impl<L: Clone> Clone for LambdaServer<L>
impl<L: Clone> Clone for LambdaServer<L>
Source§fn clone(&self) -> LambdaServer<L>
fn clone(&self) -> LambdaServer<L>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<L> Freeze for LambdaServer<L>where
L: Freeze,
impl<L> RefUnwindSafe for LambdaServer<L>where
L: RefUnwindSafe,
impl<L> Send for LambdaServer<L>where
L: Send,
impl<L> Sync for LambdaServer<L>where
L: Sync,
impl<L> Unpin for LambdaServer<L>where
L: Unpin,
impl<L> UnwindSafe for LambdaServer<L>where
L: UnwindSafe,
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,
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::Request