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§
Sourcefn get_representation(
&self,
requested_attributes: NodeAttributesQuery,
) -> impl Future<Output = Result<Representation, Status>> + Send
fn get_representation( &self, requested_attributes: NodeAttributesQuery, ) -> impl Future<Output = Result<Representation, Status>> + Send
Returns io2’s Representation for the object.
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.