pub struct ReflectionService { /* private fields */ }Available on crate feature
reflection only.Expand description
Service for gRPC server reflection.
This wraps tonic-reflection to provide service discovery capabilities.
Implementations§
Source§impl ReflectionService
impl ReflectionService
Sourcepub fn new(file_descriptor_sets: &[&'static [u8]]) -> Self
pub fn new(file_descriptor_sets: &[&'static [u8]]) -> Self
Create a new reflection service with the given file descriptor sets.
Sourcepub fn with_config(config: ReflectionConfig) -> Self
pub fn with_config(config: ReflectionConfig) -> Self
Create a new reflection service with a configuration.
Sourcepub fn build_server(
&self,
) -> Option<ServerReflectionServer<impl ServerReflection>>
pub fn build_server( &self, ) -> Option<ServerReflectionServer<impl ServerReflection>>
Build the reflection server.
Returns None if reflection is disabled or no file descriptors are provided.
Sourcepub fn build_server_v1alpha(
&self,
) -> Option<ServerReflectionServer<impl ServerReflection>>
pub fn build_server_v1alpha( &self, ) -> Option<ServerReflectionServer<impl ServerReflection>>
Build the reflection server (v1alpha version for older clients).
Returns None if reflection is disabled or no file descriptors are provided.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReflectionService
impl RefUnwindSafe for ReflectionService
impl Send for ReflectionService
impl Sync for ReflectionService
impl Unpin for ReflectionService
impl UnsafeUnpin for ReflectionService
impl UnwindSafe for ReflectionService
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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