pub enum StressorRequest {
StuffSocket {
socket: Socket,
responder: StressorStuffSocketResponder,
},
Echo {
content: String,
responder: StressorEchoResponder,
},
}
Variants§
StuffSocket
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.
Echo
Implementations§
Source§impl StressorRequest
impl StressorRequest
pub fn into_stuff_socket(self) -> Option<(Socket, StressorStuffSocketResponder)>
pub fn into_echo(self) -> Option<(String, StressorEchoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StressorRequest
impl !RefUnwindSafe for StressorRequest
impl Send for StressorRequest
impl Sync for StressorRequest
impl Unpin for StressorRequest
impl !UnwindSafe for StressorRequest
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