pub struct MemoryTransport { /* private fields */ }Expand description
A transport that records what it was asked to send, without any network.
Implementations§
Source§impl MemoryTransport
impl MemoryTransport
Sourcepub fn sent(&self) -> Vec<SentPayload>
pub fn sent(&self) -> Vec<SentPayload>
A copy of everything recorded so far, without draining it.
Sourcepub fn take(&self) -> Vec<SentPayload>
pub fn take(&self) -> Vec<SentPayload>
Drain and return everything recorded so far.
Trait Implementations§
Source§impl Clone for MemoryTransport
impl Clone for MemoryTransport
Source§impl Default for MemoryTransport
impl Default for MemoryTransport
Auto Trait Implementations§
impl Freeze for MemoryTransport
impl RefUnwindSafe for MemoryTransport
impl Send for MemoryTransport
impl Sync for MemoryTransport
impl Unpin for MemoryTransport
impl UnsafeUnpin for MemoryTransport
impl UnwindSafe for MemoryTransport
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