pub struct MockTransport;Expand description
A mock transport for doctests that panics if actually used. This is only for documentation examples that don’t actually run.
Trait Implementations§
Source§impl<R: Role> ConnectTo<R> for MockTransport
impl<R: Role> ConnectTo<R> for MockTransport
Source§async fn connect_to(
self,
_client: impl ConnectTo<R::Counterpart>,
) -> Result<(), Error>
async fn connect_to( self, _client: impl ConnectTo<R::Counterpart>, ) -> Result<(), Error>
Serve this component by forwarding to a client component. Read more
Auto Trait Implementations§
impl Freeze for MockTransport
impl RefUnwindSafe for MockTransport
impl Send for MockTransport
impl Sync 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