Skip to main content

ResourceHandler

Type Alias ResourceHandler 

Source
pub type ResourceHandler = fn(&str) -> Result<ResourceContents, String>;
Expand description

Resource read handler function type

Given a URI, returns the resource contents or an error.