pub struct InlineClientBuilder { /* private fields */ }Expand description
Builder for an InlineClient runtime.
Implementations§
Source§impl InlineClientBuilder
impl InlineClientBuilder
Sourcepub fn backend(self, backend: impl ClientBackend) -> Self
pub fn backend(self, backend: impl ClientBackend) -> Self
Sets the backend used by the runner.
Sets the shared backend used by the runner.
Sourcepub fn command_queue_capacity(self, capacity: usize) -> Self
pub fn command_queue_capacity(self, capacity: usize) -> Self
Sets the bounded command queue capacity.
Sourcepub fn max_concurrent_requests(self, maximum: usize) -> Self
pub fn max_concurrent_requests(self, maximum: usize) -> Self
Sets the maximum number of backend requests allowed in flight.
Sourcepub fn event_queue_capacity(self, capacity: usize) -> Self
pub fn event_queue_capacity(self, capacity: usize) -> Self
Sets the broadcast event queue capacity.
Sourcepub fn lossless_event_queue_capacity(self, capacity: usize) -> Self
pub fn lossless_event_queue_capacity(self, capacity: usize) -> Self
Sets the bounded queue capacity for the optional lossless event consumer.
Sourcepub fn reconnect_policy(self, policy: ReconnectPolicy) -> Self
pub fn reconnect_policy(self, policy: ReconnectPolicy) -> Self
Sets event-stream reconnect and rate-limit backoff policy.
Sourcepub fn initial_status(self, status: ClientStatus) -> Self
pub fn initial_status(self, status: ClientStatus) -> Self
Sets the initial client status.
Sourcepub fn build(self) -> InlineClientRuntime
pub fn build(self) -> InlineClientRuntime
Builds a client handle and runner pair.
Trait Implementations§
Source§impl Clone for InlineClientBuilder
impl Clone for InlineClientBuilder
Source§fn clone(&self) -> InlineClientBuilder
fn clone(&self) -> InlineClientBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InlineClientBuilder
impl Debug for InlineClientBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for InlineClientBuilder
impl !UnwindSafe for InlineClientBuilder
impl Freeze for InlineClientBuilder
impl Send for InlineClientBuilder
impl Sync for InlineClientBuilder
impl Unpin for InlineClientBuilder
impl UnsafeUnpin for InlineClientBuilder
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