pub struct E2eeHttpTransport { /* private fields */ }
Expand description
An end-to-end encrypted, HTTP-based RpcTransport implementation. This is used as the main backend for communicating over domain fronting and other systems that hit a particular HTTP endpoint with a particular set of headers.
Implementations§
Trait Implementations§
Source§impl RpcTransport for E2eeHttpTransport
impl RpcTransport for E2eeHttpTransport
Source§type Error = Error
type Error = Error
This error type represents transport-level errors, like communication errors and such.
Source§fn call_raw<'life0, 'async_trait>(
&'life0 self,
req: JrpcRequest,
) -> Pin<Box<dyn Future<Output = Result<JrpcResponse, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call_raw<'life0, 'async_trait>(
&'life0 self,
req: JrpcRequest,
) -> Pin<Box<dyn Future<Output = Result<JrpcResponse, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends an RPC call to the remote side, as a raw JSON-RPC request, receiving a raw JSON-RPC response.
Source§fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: &'life2 [Value],
) -> Pin<Box<dyn Future<Output = Result<Option<Result<Value, ServerError>>, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: &'life2 [Value],
) -> Pin<Box<dyn Future<Output = Result<Option<Result<Value, ServerError>>, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Sends an RPC call to the remote side, returning the result.
Ok(None)
means that there is no transport-level error, but that the verb does not exist. This generally does not need a manual implementation.Auto Trait Implementations§
impl Freeze for E2eeHttpTransport
impl !RefUnwindSafe for E2eeHttpTransport
impl Send for E2eeHttpTransport
impl Sync for E2eeHttpTransport
impl Unpin for E2eeHttpTransport
impl !UnwindSafe for E2eeHttpTransport
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