Struct geph4_protocol::bridge_exit::BridgeExitTransport
source · pub struct BridgeExitTransport { /* private fields */ }
Expand description
An RpcTransport that implements the symmetrically authenticated bridge-exit protocol.
Implementations§
source§impl BridgeExitTransport
impl BridgeExitTransport
sourcepub fn new(secret: [u8; 32], exit: SocketAddr) -> Self
pub fn new(secret: [u8; 32], exit: SocketAddr) -> Self
Creates a new BridgeExitTransport with the given bridge secret and destination.
Trait Implementations§
source§impl Clone for BridgeExitTransport
impl Clone for BridgeExitTransport
source§fn clone(&self) -> BridgeExitTransport
fn clone(&self) -> BridgeExitTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl RpcTransport for BridgeExitTransport
impl RpcTransport for BridgeExitTransport
§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,
jrpc: 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, jrpc: 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, Global>>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, Global>>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 RefUnwindSafe for BridgeExitTransport
impl Send for BridgeExitTransport
impl Sync for BridgeExitTransport
impl Unpin for BridgeExitTransport
impl UnwindSafe for BridgeExitTransport
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