pub struct Directory { /* private fields */ }Expand description
The resolvers of non-local addresses, keyed by IRI scheme.
Implementations§
Source§impl Directory
impl Directory
Sourcepub fn register(&self, scheme: &str, resolver: Arc<dyn Resolver>)
pub fn register(&self, scheme: &str, resolver: Arc<dyn Resolver>)
Registers resolver for addresses whose scheme is scheme.
Sourcepub fn resolve(
&self,
address: &Address,
) -> Result<Arc<dyn Mailbox>, ResolveError>
pub fn resolve( &self, address: &Address, ) -> Result<Arc<dyn Mailbox>, ResolveError>
The mailbox of a non-local address, from the resolver of its scheme.
§Errors
ResolveError when no resolver knows the address.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Directory
impl Forget for Directory
impl Move for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directory
impl UnwindSafe for Directory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more