pub trait Representation {
type Protocol: ProtocolMarker;
// Required methods
fn get_representation(
&self,
requested_attributes: NodeAttributesQuery,
) -> impl Future<Output = Result<Representation, Status>> + Send;
fn node_info(
&self,
) -> impl Future<Output = Result<NodeInfoDeprecated, Status>> + Send;
}Expand description
Trait to get either fio::Representation or fio::NodeInfoDeprecated. Connection types should implement this.
Required Associated Types§
Sourcetype Protocol: ProtocolMarker
type Protocol: ProtocolMarker
The protocol used for the connection.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".