Trait vfs::object_request::Representation
source · 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.
Object Safety§
This trait is not object safe.