pub struct GrpcConfig { /* private fields */ }Expand description
Configuration governing gRPC message size limits and response compression.
Implementations§
Source§impl GrpcConfig
Inherent implementation of GrpcConfig.
impl GrpcConfig
Inherent implementation of GrpcConfig.
Sourcepub fn with_max_message_size(self, max_message_size: usize) -> Self
pub fn with_max_message_size(self, max_message_size: usize) -> Self
Sourcepub fn with_compression(self, compression: Compress) -> Self
pub fn with_compression(self, compression: Compress) -> Self
Source§impl GrpcConfig
impl GrpcConfig
pub fn get_max_message_size(&self) -> usize
pub fn get_mut_max_message_size(&mut self) -> &mut usize
pub fn set_max_message_size(&mut self, val: usize) -> &mut Self
pub fn get_compression(&self) -> Compress
pub fn get_mut_compression(&mut self) -> &mut Compress
pub fn set_compression(&mut self, val: Compress) -> &mut Self
Trait Implementations§
Source§impl Clone for GrpcConfig
impl Clone for GrpcConfig
Source§impl Debug for GrpcConfig
impl Debug for GrpcConfig
Source§impl Default for GrpcConfig
Default construction for GrpcConfig.
impl Default for GrpcConfig
Default construction for GrpcConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default GrpcConfig value.
impl Eq for GrpcConfig
Source§impl PartialEq for GrpcConfig
impl PartialEq for GrpcConfig
impl StructuralPartialEq for GrpcConfig
Auto Trait Implementations§
impl Forget for GrpcConfig
impl Freeze for GrpcConfig
impl Move for GrpcConfig
impl RefUnwindSafe for GrpcConfig
impl Send for GrpcConfig
impl Sync for GrpcConfig
impl Unpin for GrpcConfig
impl UnsafeUnpin for GrpcConfig
impl UnwindSafe for GrpcConfig
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.