pub struct MockTransport {
pub sent_log: Vec<Vec<u8>>,
pub recv_log: Vec<Vec<u8>>,
/* private fields */
}Expand description
Connected mock transport. All traffic is recorded for assertion.
Fields§
§sent_log: Vec<Vec<u8>>Every byte sequence this end has sent, in order.
recv_log: Vec<Vec<u8>>Every byte sequence this end has received, in order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Sync for MockTransport
impl Freeze for MockTransport
impl RefUnwindSafe for MockTransport
impl Send for MockTransport
impl Unpin for MockTransport
impl UnsafeUnpin for MockTransport
impl UnwindSafe for MockTransport
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