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 event_queue_capacity(self, capacity: usize) -> Self
pub fn event_queue_capacity(self, capacity: usize) -> Self
Sets the broadcast event queue capacity.
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