Struct s2n_netbench::scenario::builder::connection::Builder
source · pub struct Builder<Endpoint> { /* private fields */ }Implementations§
source§impl<E: Endpoint> Builder<E>
impl<E: Endpoint> Builder<E>
pub fn checkpoint<Location>( &self ) -> (Checkpoint<E, Location, Park>, Checkpoint<E, Location, Unpark>)
pub fn park(&mut self, checkpoint: Checkpoint<E, Local, Park>) -> &mut Self
pub fn unpark(&mut self, checkpoint: Checkpoint<E, Local, Unpark>) -> &mut Self
pub fn sleep(&mut self, amount: Duration) -> &mut Self
pub fn trace(&mut self, name: &str) -> &mut Self
pub fn profile<F: FnOnce(&mut Self)>(&mut self, name: &str, f: F) -> &mut Self
pub fn iterate<I: Into<IterateValue>, F: FnOnce(&mut Self)>( &mut self, count: I, f: F ) -> &mut Self
pub fn scope<F: FnOnce(&mut Scope<E>)>(&mut self, f: F) -> &mut Self
pub fn concurrently<A: FnOnce(&mut Builder<E>), B: FnOnce(&mut Builder<E>)>( &mut self, a: A, b: B ) -> &mut Self
pub fn open_bidirectional_stream<L: FnOnce(&mut Stream<E, Local>), R: FnOnce(&mut Stream<E::Peer, Remote>)>( &mut self, local: L, remote: R ) -> &mut Self
pub fn open_send_stream<L: FnOnce(&mut SendStream<E, Local>), R: FnOnce(&mut ReceiveStream<E::Peer, Remote>)>( &mut self, local: L, remote: R ) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<Endpoint> !RefUnwindSafe for Builder<Endpoint>
impl<Endpoint> !Send for Builder<Endpoint>
impl<Endpoint> !Sync for Builder<Endpoint>
impl<Endpoint> Unpin for Builder<Endpoint>where
Endpoint: Unpin,
impl<Endpoint> !UnwindSafe for Builder<Endpoint>
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