Struct xstack_circuit::CircuitStopServerBuilder
source · pub struct CircuitStopServerBuilder { /* private fields */ }
Expand description
A builder for CircuitStopServer
Implementations§
source§impl CircuitStopServerBuilder
impl CircuitStopServerBuilder
sourcepub fn incoming_buffer(self, value: usize) -> Self
pub fn incoming_buffer(self, value: usize) -> Self
Override default incoming_buffer
configuration, the default value is 100
.
This value limits the maximum length of incoming stream queue.
sourcepub fn channel_limits(self, value: NonZeroUsize) -> Self
pub fn channel_limits(self, value: NonZeroUsize) -> Self
Override default channel_limits
configuration, the default value is 5
.
This value limits the maximun number of reservation
channels.
sourcepub fn start(self) -> CircuitStopServer
pub fn start(self) -> CircuitStopServer
Consume CircuitStopServer
configuration and start the server.
Trait Implementations§
source§impl Clone for CircuitStopServerBuilder
impl Clone for CircuitStopServerBuilder
source§fn clone(&self) -> CircuitStopServerBuilder
fn clone(&self) -> CircuitStopServerBuilder
Returns a copy 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 CircuitStopServerBuilder
impl !RefUnwindSafe for CircuitStopServerBuilder
impl Send for CircuitStopServerBuilder
impl Sync for CircuitStopServerBuilder
impl Unpin for CircuitStopServerBuilder
impl !UnwindSafe for CircuitStopServerBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)