pub struct GrpcServerConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> GrpcServerConfigBuilder<S>
impl<S: State> GrpcServerConfigBuilder<S>
Sourcepub fn build(self) -> GrpcServerConfigwhere
S: IsComplete,
pub fn build(self) -> GrpcServerConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn bind_address(
self,
value: String,
) -> GrpcServerConfigBuilder<SetBindAddress<S>>where
S::BindAddress: IsUnset,
pub fn bind_address(
self,
value: String,
) -> GrpcServerConfigBuilder<SetBindAddress<S>>where
S::BindAddress: IsUnset,
Required.
The address to bind the gRPC server
Sourcepub fn server_address(
self,
value: String,
) -> GrpcServerConfigBuilder<SetServerAddress<S>>where
S::ServerAddress: IsUnset,
pub fn server_address(
self,
value: String,
) -> GrpcServerConfigBuilder<SetServerAddress<S>>where
S::ServerAddress: IsUnset,
Required.
The address to advertise to clients
Sourcepub fn max_recv_message_size(
self,
value: ReadableSize,
) -> GrpcServerConfigBuilder<SetMaxRecvMessageSize<S>>where
S::MaxRecvMessageSize: IsUnset,
pub fn max_recv_message_size(
self,
value: ReadableSize,
) -> GrpcServerConfigBuilder<SetMaxRecvMessageSize<S>>where
S::MaxRecvMessageSize: IsUnset,
Required.
Maximum gRPC receiving (decoding) message size
Sourcepub fn max_send_message_size(
self,
value: ReadableSize,
) -> GrpcServerConfigBuilder<SetMaxSendMessageSize<S>>where
S::MaxSendMessageSize: IsUnset,
pub fn max_send_message_size(
self,
value: ReadableSize,
) -> GrpcServerConfigBuilder<SetMaxSendMessageSize<S>>where
S::MaxSendMessageSize: IsUnset,
Required.
Maximum gRPC sending (encoding) message size
Auto Trait Implementations§
impl<S> Freeze for GrpcServerConfigBuilder<S>
impl<S> RefUnwindSafe for GrpcServerConfigBuilder<S>
impl<S> Send for GrpcServerConfigBuilder<S>
impl<S> Sync for GrpcServerConfigBuilder<S>
impl<S> Unpin for GrpcServerConfigBuilder<S>
impl<S> UnwindSafe for GrpcServerConfigBuilder<S>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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::Request