pub struct MockTransportHandle {
pub inbound_message_tx: Sender<Message>,
pub sdk_control_tx: Sender<Value>,
pub outbound_control_rx: Receiver<Value>,
pub outbound_control_request_rx: Receiver<Value>,
pub sent_input_rx: Receiver<InputMessage>,
pub end_input_rx: Receiver<bool>,
}Expand description
Handle for interacting with the mock transport in tests
Fields§
§inbound_message_tx: Sender<Message>Inject inbound messages (as if coming from CLI)
sdk_control_tx: Sender<Value>Inject inbound SDK control JSON (as if coming from CLI)
outbound_control_rx: Receiver<Value>Observe outbound SDK control responses sent by SDK
outbound_control_request_rx: Receiver<Value>Observe outbound SDK control requests sent by SDK
sent_input_rx: Receiver<InputMessage>Observe input messages sent by SDK
end_input_rx: Receiver<bool>Observe end_input calls from SDK
Auto Trait Implementations§
impl Freeze for MockTransportHandle
impl !RefUnwindSafe for MockTransportHandle
impl Send for MockTransportHandle
impl Sync for MockTransportHandle
impl Unpin for MockTransportHandle
impl !UnwindSafe for MockTransportHandle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more