pub struct NativeRpcServerConfig {
pub address: SocketAddr,
pub certificate_pem: Vec<u8>,
pub private_key_pem: Vec<u8>,
pub client_ca_pem: Option<Vec<u8>>,
pub max_connections: usize,
pub max_concurrent_streams: u32,
pub max_in_flight_per_connection: usize,
pub request_timeout: Duration,
pub idle_timeout: Duration,
pub keepalive_interval: Duration,
pub keepalive_timeout: Duration,
}Fields§
§address: SocketAddr§certificate_pem: Vec<u8>§private_key_pem: Vec<u8>§client_ca_pem: Option<Vec<u8>>§max_connections: usize§max_concurrent_streams: u32§max_in_flight_per_connection: usize§request_timeout: Duration§idle_timeout: Duration§keepalive_interval: Duration§keepalive_timeout: DurationTrait Implementations§
Source§impl Clone for NativeRpcServerConfig
impl Clone for NativeRpcServerConfig
Source§fn clone(&self) -> NativeRpcServerConfig
fn clone(&self) -> NativeRpcServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for NativeRpcServerConfig
impl RefUnwindSafe for NativeRpcServerConfig
impl Send for NativeRpcServerConfig
impl Sync for NativeRpcServerConfig
impl Unpin for NativeRpcServerConfig
impl UnsafeUnpin for NativeRpcServerConfig
impl UnwindSafe for NativeRpcServerConfig
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