pub trait CallCounter: Send + Sync {
// Required method
fn take_place(&self) -> Result<CallPlace, usize>;
}Expand description
The calls open on one connection, as whoever counts them keeps them —
plexus-transport’s ConnectionCalls in a server (BIDIR-8: the count is
the transport’s, so no service writes it). A duplex call is one call.
Required Methods§
Sourcefn take_place(&self) -> Result<CallPlace, usize>
fn take_place(&self) -> Result<CallPlace, usize>
A place for one more call, or the most there may be (too_many_calls {max}).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".