pub trait ConnectionManager {
// Required methods
async fn get_current_connection_ids(
&self,
) -> Result<GetCurrentConnectionIdsResponse>;
async fn get_current_connection_info(
&self,
request: GetCurrentConnectionInfoRequest,
) -> Result<GetCurrentConnectionInfoResponse>;
async fn get_protocol_info(&self) -> Result<GetProtocolInfoResponse>;
}Expand description
Services related to connections and protocols
Required Methods§
async fn get_current_connection_ids( &self, ) -> Result<GetCurrentConnectionIdsResponse>
async fn get_current_connection_info( &self, request: GetCurrentConnectionInfoRequest, ) -> Result<GetCurrentConnectionInfoResponse>
async fn get_protocol_info(&self) -> Result<GetProtocolInfoResponse>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.