Trait vm_resource::ResolveResource

source ·
pub trait ResolveResource<K: CanResolveTo<Self::Output>, T>: Send + Sync {
    type Output;
    type Error: Into<Box<dyn Error + Send + Sync>>;

    // Required method
    fn resolve(
        &self,
        resource: T,
        input: K::Input<'_>,
    ) -> Result<Self::Output, Self::Error>;
}
Expand description

Trait implemented to resolve resource type T as resource kind K.

Required Associated Types§

source

type Output

The output type for resource resolution.

source

type Error: Into<Box<dyn Error + Send + Sync>>

The error type for resolve.

Required Methods§

source

fn resolve( &self, resource: T, input: K::Input<'_>, ) -> Result<Self::Output, Self::Error>

Resolves the resource.

Object Safety§

This trait is not object safe.

Implementors§