pub struct TransportRequest {
pub request: JsonRpcRequest,
}
Expand description
Message sent from a transport to the RouterRegistry to handle a request
Fields§
§request: JsonRpcRequest
Trait Implementations§
Source§impl Handler<TransportRequest> for RouterActor
impl Handler<TransportRequest> for RouterActor
Source§type Result = Pin<Box<dyn Future<Output = Result<JsonRpcResponse, JsonRpcError>>>>
type Result = Pin<Box<dyn Future<Output = Result<JsonRpcResponse, JsonRpcError>>>>
The type of value that this handler will return. Read more
Source§impl Handler<TransportRequest> for SseTransportActor
impl Handler<TransportRequest> for SseTransportActor
Source§type Result = Result<JsonRpcResponse, JsonRpcError>
type Result = Result<JsonRpcResponse, JsonRpcError>
The type of value that this handler will return. Read more
Source§impl Handler<TransportRequest> for StdioTransportActor
Handles incoming transport requests (process JSON-RPC)
impl Handler<TransportRequest> for StdioTransportActor
Handles incoming transport requests (process JSON-RPC)
Source§type Result = Pin<Box<dyn ActorFuture<StdioTransportActor, Output = Result<JsonRpcResponse, JsonRpcError>>>>
type Result = Pin<Box<dyn ActorFuture<StdioTransportActor, Output = Result<JsonRpcResponse, JsonRpcError>>>>
The type of value that this handler will return. Read more
Source§impl Handler<TransportRequest> for WasiTransportActor
Handles incoming transport requests (executing WASI modules)
impl Handler<TransportRequest> for WasiTransportActor
Handles incoming transport requests (executing WASI modules)
Source§type Result = Pin<Box<dyn ActorFuture<WasiTransportActor, Output = Result<JsonRpcResponse, JsonRpcError>>>>
type Result = Pin<Box<dyn ActorFuture<WasiTransportActor, Output = Result<JsonRpcResponse, JsonRpcError>>>>
The type of value that this handler will return. Read more
Source§impl Message for TransportRequest
impl Message for TransportRequest
Source§type Result = Result<JsonRpcResponse, JsonRpcError>
type Result = Result<JsonRpcResponse, JsonRpcError>
The type of value that this message will resolved with if it is
successful.
Auto Trait Implementations§
impl Freeze for TransportRequest
impl RefUnwindSafe for TransportRequest
impl Send for TransportRequest
impl Sync for TransportRequest
impl Unpin for TransportRequest
impl UnwindSafe for TransportRequest
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