Struct xstack_circuit::CircuitStopServer
source · pub struct CircuitStopServer { /* private fields */ }
Expand description
A stop
protocol server side implementation.
Implementations§
source§impl CircuitStopServer
impl CircuitStopServer
sourcepub fn new() -> CircuitStopServerBuilder
Available on crate feature global_register
only.
pub fn new() -> CircuitStopServerBuilder
global_register
only.Bind CircuitStopServer
to the global context Switch
.
sourcepub fn bind_with(switch: &Switch) -> CircuitStopServerBuilder
pub fn bind_with(switch: &Switch) -> CircuitStopServerBuilder
Bind CircuitStopServer
to a Switch
.
sourcepub fn reservations(&self) -> usize
pub fn reservations(&self) -> usize
Returns the count of valid reservations.
Auto Trait Implementations§
impl Freeze for CircuitStopServer
impl RefUnwindSafe for CircuitStopServer
impl Send for CircuitStopServer
impl Sync for CircuitStopServer
impl Unpin for CircuitStopServer
impl UnwindSafe for CircuitStopServer
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