pub struct TestIoService {
pub read: Arc<Mutex<Vec<u8>>>,
pub write: Arc<Vec<u8>>,
}Expand description
A service you can conveniently use to validate layers that interact with AsyncReadExt and AsyncWriteExt
Fields§
§read: Arc<Mutex<Vec<u8>>>§write: Arc<Vec<u8>>Implementations§
Trait Implementations§
Source§impl Clone for TestIoService
impl Clone for TestIoService
Source§fn clone(&self) -> TestIoService
fn clone(&self) -> TestIoService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestIoService
impl Debug for TestIoService
Source§impl<Reader, Writer> Service<(Reader, Writer)> for TestIoServicewhere
Reader: AsyncReadExt + Send + Unpin + 'static,
Writer: AsyncWriteExt + Send + Unpin + 'static,
impl<Reader, Writer> Service<(Reader, Writer)> for TestIoServicewhere
Reader: AsyncReadExt + Send + Unpin + 'static,
Writer: AsyncWriteExt + Send + Unpin + 'static,
Source§type Future = Pin<Box<dyn Future<Output = Result<<TestIoService as Service<(Reader, Writer)>>::Response, <TestIoService as Service<(Reader, Writer)>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<TestIoService as Service<(Reader, Writer)>>::Response, <TestIoService as Service<(Reader, Writer)>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for TestIoService
impl !RefUnwindSafe for TestIoService
impl Send for TestIoService
impl Sync for TestIoService
impl Unpin for TestIoService
impl !UnwindSafe for TestIoService
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