pub struct MockServerHandle { /* private fields */ }Expand description
A running mock server and the signal that stops it.
Keep this value alive for as long as the test needs the server. Dropping it closes the
shutdown channel, which stops the server, but only Self::shutdown waits for the
server task to finish. Binding the handle to _ drops it immediately.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MockServerHandle
impl !UnwindSafe for MockServerHandle
impl Freeze for MockServerHandle
impl Send for MockServerHandle
impl Sync for MockServerHandle
impl Unpin for MockServerHandle
impl UnsafeUnpin for MockServerHandle
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> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].