Skip to main content

ResourceResolver

Trait ResourceResolver 

Source
pub trait ResourceResolver: Send + Sync {
    // Required method
    fn resolve(&self, path: &str) -> Result<Vec<u8>, CamelError>;
}
Expand description

Resolves schema resources. Currently only filesystem paths are supported. TODO(VAL-013): Implement URL and classpath resolvers.

Required Methods§

Source

fn resolve(&self, path: &str) -> Result<Vec<u8>, CamelError>

Read the resource at path into bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§