Struct s2n_netbench::scenario::builder::stream::SendStream
source · pub struct SendStream<Endpoint, Location> { /* private fields */ }Implementations§
source§impl<Endpoint, Location> SendStream<Endpoint, Location>
impl<Endpoint, Location> SendStream<Endpoint, Location>
pub fn send(&mut self, bytes: Byte) -> &mut Self
pub fn set_send_rate(&mut self, rate: Rate) -> &mut Self
pub fn park( &mut self, checkpoint: Checkpoint<Endpoint, Location, Park> ) -> &mut Self
pub fn unpark( &mut self, checkpoint: Checkpoint<Endpoint, Location, 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
Auto Trait Implementations§
impl<Endpoint, Location> !RefUnwindSafe for SendStream<Endpoint, Location>
impl<Endpoint, Location> !Send for SendStream<Endpoint, Location>
impl<Endpoint, Location> !Sync for SendStream<Endpoint, Location>
impl<Endpoint, Location> Unpin for SendStream<Endpoint, Location>
impl<Endpoint, Location> !UnwindSafe for SendStream<Endpoint, Location>
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