pub struct ClientRegistry { /* private fields */ }
Expand description
A factory for creating client connections to a protosocket
server.
Implementations§
Source§impl ClientRegistry
impl ClientRegistry
Sourcepub fn new(runtime: Handle) -> Self
pub fn new(runtime: Handle) -> Self
Construct a new client registry. Connections will be spawned on the provided runtime.
Sourcepub fn set_max_read_buffer_length(&mut self, max_buffer_length: usize)
pub fn set_max_read_buffer_length(&mut self, max_buffer_length: usize)
Sets the maximum read buffer length for connections created by this registry after the setting is applied.
Sourcepub fn set_max_queued_outbound_messages(
&mut self,
max_queued_outbound_messages: usize,
)
pub fn set_max_queued_outbound_messages( &mut self, max_queued_outbound_messages: usize, )
Sets the maximum queued outbound messages for connections created by this registry after the setting is applied.
Trait Implementations§
Source§impl Clone for ClientRegistry
impl Clone for ClientRegistry
Source§fn clone(&self) -> ClientRegistry
fn clone(&self) -> ClientRegistry
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 moreAuto Trait Implementations§
impl Freeze for ClientRegistry
impl RefUnwindSafe for ClientRegistry
impl Send for ClientRegistry
impl Sync for ClientRegistry
impl Unpin for ClientRegistry
impl UnwindSafe for ClientRegistry
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