pub trait EnumerateResources {
// Required method
fn enumerate_resources(
&self,
namespace: &str,
kind: ResourceKind,
) -> Result<Vec<ResourceLocation<'static>>, Error>;
}Expand description
Indicates that a type can enumerate available resources.
Required Methods§
Sourcefn enumerate_resources(
&self,
namespace: &str,
kind: ResourceKind,
) -> Result<Vec<ResourceLocation<'static>>, Error>
fn enumerate_resources( &self, namespace: &str, kind: ResourceKind, ) -> Result<Vec<ResourceLocation<'static>>, Error>
Enumerates the available resources of the given ResourceKind in the
given namespace.