pub struct Configuration { /* private fields */ }
Expand description
Configuration for a protosocket
rpc client.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn max_buffer_length(&mut self, max_buffer_length: usize)
pub fn max_buffer_length(&mut self, max_buffer_length: usize)
Max buffer length limits the max message size. Try to use a buffer length that is at least 4 times the largest message you want to support.
Default: 4MiB
Sourcepub fn max_queued_outbound_messages(
&mut self,
max_queued_outbound_messages: usize,
)
pub fn max_queued_outbound_messages( &mut self, max_queued_outbound_messages: usize, )
Max messages that will be queued up waiting for send on the client channel.
Default: 256
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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