pub struct ClientServer { /* private fields */ }Expand description
Multi-host fixture with N servers plus one client. All host
futures run on a single LocalSet driven by a single paused
tokio runtime.
Implementations§
Source§impl ClientServer
impl ClientServer
pub fn new() -> Self
Sourcepub fn with_config(cfg: KernelConfig) -> Self
pub fn with_config(cfg: KernelConfig) -> Self
Construct with a custom KernelConfig applied to every host
added later. Use for tests that need to tweak MTU, buffer caps,
retx thresholds, etc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientServer
impl !RefUnwindSafe for ClientServer
impl !Send for ClientServer
impl !Sync for ClientServer
impl Unpin for ClientServer
impl UnsafeUnpin for ClientServer
impl !UnwindSafe for ClientServer
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