pub struct StressorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl StressorSynchronousProxy
impl StressorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<StressorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<StressorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn stuff_socket(
&self,
socket: Socket,
___deadline: MonotonicInstant,
) -> Result<u32, Error>
pub fn stuff_socket( &self, socket: Socket, ___deadline: MonotonicInstant, ) -> Result<u32, Error>
Writes 0xFF repeatedly to the given socket until the buffer is full, then returns the number of bytes written. The client should not read from the other end of the socket until this returns.
pub fn echo( &self, content: &str, ___deadline: MonotonicInstant, ) -> Result<String, Error>
Trait Implementations§
Source§impl Debug for StressorSynchronousProxy
impl Debug for StressorSynchronousProxy
Source§impl SynchronousProxy for StressorSynchronousProxy
impl SynchronousProxy for StressorSynchronousProxy
Source§type Proxy = StressorProxy
type Proxy = StressorProxy
The async proxy for the same protocol.
Source§type Protocol = StressorMarker
type Protocol = StressorMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for StressorSynchronousProxy
impl RefUnwindSafe for StressorSynchronousProxy
impl Send for StressorSynchronousProxy
impl Sync for StressorSynchronousProxy
impl Unpin for StressorSynchronousProxy
impl UnwindSafe for StressorSynchronousProxy
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