struct BoundedTransport {
reader: FramedRead<ChildStdout, LinesCodec>,
writer: Arc<Mutex<Option<FramedWrite<ChildStdin, LinesCodec>>>>,
ended: bool,
}Fields§
§reader: FramedRead<ChildStdout, LinesCodec>§writer: Arc<Mutex<Option<FramedWrite<ChildStdin, LinesCodec>>>>§ended: boolTrait Implementations§
Source§impl Transport<RoleClient> for BoundedTransport
impl Transport<RoleClient> for BoundedTransport
type Error = Error
Source§fn send(
&mut self,
message: TxJsonRpcMessage<RoleClient>,
) -> impl Future<Output = Result<()>> + Send + 'static
fn send( &mut self, message: TxJsonRpcMessage<RoleClient>, ) -> impl Future<Output = Result<()>> + Send + 'static
Send a message to the transport Read more
Source§async fn receive(&mut self) -> Option<RxJsonRpcMessage<RoleClient>>
async fn receive(&mut self) -> Option<RxJsonRpcMessage<RoleClient>>
Receive a message from the transport, this operation is sequential.
fn name() -> Cow<'static, str>
Auto Trait Implementations§
impl !RefUnwindSafe for BoundedTransport
impl !UnwindSafe for BoundedTransport
impl Freeze for BoundedTransport
impl Send for BoundedTransport
impl Sync for BoundedTransport
impl Unpin for BoundedTransport
impl UnsafeUnpin for BoundedTransport
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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