pub struct ClientRegistry<TConnector = TcpConnector> { /* private fields */ }
Expand description
A factory for creating client connections to a protosocket
server.
Implementations§
Source§impl<TConnector> ClientRegistry<TConnector>where
TConnector: StreamConnector,
impl<TConnector> ClientRegistry<TConnector>where
TConnector: StreamConnector,
Sourcepub fn new(runtime: Handle, connector: TConnector) -> Self
pub fn new(runtime: Handle, connector: TConnector) -> 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<TConnector: Clone> Clone for ClientRegistry<TConnector>
impl<TConnector: Clone> Clone for ClientRegistry<TConnector>
Source§fn clone(&self) -> ClientRegistry<TConnector>
fn clone(&self) -> ClientRegistry<TConnector>
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<TConnector> Freeze for ClientRegistry<TConnector>where
TConnector: Freeze,
impl<TConnector> RefUnwindSafe for ClientRegistry<TConnector>where
TConnector: RefUnwindSafe,
impl<TConnector> Send for ClientRegistry<TConnector>where
TConnector: Send,
impl<TConnector> Sync for ClientRegistry<TConnector>where
TConnector: Sync,
impl<TConnector> Unpin for ClientRegistry<TConnector>where
TConnector: Unpin,
impl<TConnector> UnwindSafe for ClientRegistry<TConnector>where
TConnector: UnwindSafe,
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