pub struct Builder<L> { /* private fields */ }
Implementations§
source§impl<L> Builder<L>
impl<L> Builder<L>
pub fn layer<I>(self, layer: I) -> Builder<Stack<I, L>>
pub fn option_layer<I>( self, layer: Option<I> ) -> Builder<Stack<Either<I, Identity>, L>>
pub fn before_hook<K>(self, hook: K) -> Builder<Stack<BeforeHookLayer<K>, L>>
pub fn build<H>(self, handle: H) -> L::Handlewhere
L: Layer<H>,
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for Builder<L>where
L: Freeze,
impl<L> RefUnwindSafe for Builder<L>where
L: RefUnwindSafe,
impl<L> Send for Builder<L>where
L: Send,
impl<L> Sync for Builder<L>where
L: Sync,
impl<L> Unpin for Builder<L>where
L: Unpin,
impl<L> UnwindSafe for Builder<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
§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