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§

source

type Protocol: ProtocolMarker

The protocol used for the connection.

Required Methods§

source

fn get_representation( &self, requested_attributes: NodeAttributesQuery, ) -> impl Future<Output = Result<Representation, Status>> + Send

Returns io2’s Representation for the object.

source

fn node_info( &self, ) -> impl Future<Output = Result<NodeInfoDeprecated, Status>> + Send

Returns io1’s NodeInfoDeprecated.

Object Safety§

This trait is not object safe.

Implementors§