pub trait Transport:
Read
+ Write
+ Send {
// Required methods
fn name(&self) -> &str;
fn is_encrypted(&self) -> bool;
fn peer_identity(&self) -> Option<String>;
}Expand description
A secure transport for coordinator↔signer communication.
Required Methods§
Sourcefn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Whether the connection is encrypted.
Sourcefn peer_identity(&self) -> Option<String>
fn peer_identity(&self) -> Option<String>
Peer identity (authenticated ID or None).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".