pub struct MultiClientTest { /* private fields */ }Expand description
Implementations§
Source§impl MultiClientTest
impl MultiClientTest
Sourcepub async fn with_clients(n: usize) -> Self
pub async fn with_clients(n: usize) -> Self
Create test with N clients.
Server logs are captured to tmp/test-logs/{test_name}_server_{timestamp}.log.
§Panics
Panics if server fails to spawn.
Sourcepub fn with_buffer(self, content: &str) -> Self
pub fn with_buffer(self, content: &str) -> Self
Set initial buffer content (shared by all clients).
Auto Trait Implementations§
impl Freeze for MultiClientTest
impl !RefUnwindSafe for MultiClientTest
impl Send for MultiClientTest
impl Sync for MultiClientTest
impl Unpin for MultiClientTest
impl UnsafeUnpin for MultiClientTest
impl !UnwindSafe for MultiClientTest
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request