Skip to main content

ResourceHandler

Trait ResourceHandler 

Source
pub trait ResourceHandler: Send + Sync {
    // Required method
    fn read(&self) -> BoxFuture<'_, Result<ReadResourceResult>>;
}
Expand description

Resource handler trait - the core abstraction for resource reading

Required Methods§

Source

fn read(&self) -> BoxFuture<'_, Result<ReadResourceResult>>

Read the resource contents

Implementors§