Struct geph4_protocol::bridge_exit::BridgeExitClient
source · pub struct BridgeExitClient<T: RpcTransport = DynRpcTransport>(pub T);
Expand description
Automatically generated client type that communicates to servers implementing the BridgeExitProtocol protocol. The easiest way to use this is by using the From<RpcTransport>
implementation.
See the BridgeExitProtocol trait for further documentation on the functionality of the methods..
Tuple Fields§
§0: T
Implementations§
source§impl<__nrpc_T: RpcTransport + Send + Sync + 'static> BridgeExitClient<__nrpc_T>
impl<__nrpc_T: RpcTransport + Send + Sync + 'static> BridgeExitClient<__nrpc_T>
pub async fn advertise_raw( &self, protocol: LegacyProtocol, bridge_addr: SocketAddr, bridge_group: SmolStr ) -> Result<SocketAddr, BridgeExitError<__nrpc_T::Error>>
pub async fn advertise_raw_v2( &self, protocol: SmolStr, bridge_addr: SocketAddr, bridge_group: SmolStr ) -> Result<SocketAddr, BridgeExitError<__nrpc_T::Error>>
pub async fn load_factor(&self) -> Result<f64, BridgeExitError<__nrpc_T::Error>>
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for BridgeExitClient<T>where T: RefUnwindSafe,
impl<T> Send for BridgeExitClient<T>
impl<T> Sync for BridgeExitClient<T>
impl<T> Unpin for BridgeExitClient<T>where T: Unpin,
impl<T> UnwindSafe for BridgeExitClient<T>where T: UnwindSafe,
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