Skip to main content

ProxyResolver

Trait ProxyResolver 

Source
pub trait ProxyResolver {
    // Required method
    fn resolve(&self, proxy_uuid: &str) -> Option<ProxyTarget>;
}
Expand description

Turns the uuid of an EpcExternalPartReference into what it stands for.

In an EPC that means reading the proxy’s .rels for the file name and the proxy object for the MIME type. Implemented by the store, because only the store can see either.

Required Methods§

Source

fn resolve(&self, proxy_uuid: &str) -> Option<ProxyTarget>

What the proxy with this uuid names, if the package knows.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl ProxyResolver for EpcStore

Resolving proxies is something only the package can do, so the store is the resolver.

Source§

impl ProxyResolver for NoProxies

Source§

impl<F: Fn(&str) -> Option<ProxyTarget>> ProxyResolver for F