pub struct AsyncLocalBridgeBuilder { /* private fields */ }Expand description
Builder for AsyncLocalBridge.
Configure options synchronously, then call build() to connect.
Implementations§
Source§impl AsyncLocalBridgeBuilder
impl AsyncLocalBridgeBuilder
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Sets the connection timeout for establishing TCP connections.
Sourcepub fn init_timeout(self, timeout: Duration) -> Self
pub fn init_timeout(self, timeout: Duration) -> Self
Sets the initialization timeout for waiting for the connection pool.
Sourcepub fn addr(self, addr: SocketAddr) -> Self
pub fn addr(self, addr: SocketAddr) -> Self
Sets the simulator address.
Sourcepub async fn build(self) -> Result<AsyncLocalBridge, BridgeError>
pub async fn build(self) -> Result<AsyncLocalBridge, BridgeError>
Builds the AsyncLocalBridge, connecting to the simulator.
Trait Implementations§
Source§impl Clone for AsyncLocalBridgeBuilder
impl Clone for AsyncLocalBridgeBuilder
Source§fn clone(&self) -> AsyncLocalBridgeBuilder
fn clone(&self) -> AsyncLocalBridgeBuilder
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 AsyncLocalBridgeBuilder
impl Debug for AsyncLocalBridgeBuilder
Auto Trait Implementations§
impl Freeze for AsyncLocalBridgeBuilder
impl RefUnwindSafe for AsyncLocalBridgeBuilder
impl Send for AsyncLocalBridgeBuilder
impl Sync for AsyncLocalBridgeBuilder
impl Unpin for AsyncLocalBridgeBuilder
impl UnwindSafe for AsyncLocalBridgeBuilder
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