vfs::object_request

Trait 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.

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.

Implementors§