pub struct AuthorityMap { /* private fields */ }Expand description
Repository that serves each known authority.
Declared authorities come from the manifest and strictly restrict resolution to their repository. Inferred authorities come from deployment declarations; when the inferred repository has no matching route, resolution falls back to workspace rules. A host inferred for several repositories is not used.
Implementations§
Source§impl AuthorityMap
impl AuthorityMap
Sourcepub fn declare(&mut self, authority: String, repository: RepoId)
pub fn declare(&mut self, authority: String, repository: RepoId)
Declares the repository serving a normalized host or host:port authority.
Sourcepub fn infer(&mut self, host: &str, repository: &RepoId)
pub fn infer(&mut self, host: &str, repository: &RepoId)
Records a host inferred from a deployment declaration in repository.
Sourcepub fn infer_from_infrastructure(
&mut self,
repository: &RepoId,
document: &InfrastructureDocument,
)
pub fn infer_from_infrastructure( &mut self, repository: &RepoId, document: &InfrastructureDocument, )
Records every service, deployment, and host alias declared by an infrastructure document.
Trait Implementations§
Source§impl Clone for AuthorityMap
impl Clone for AuthorityMap
Source§impl Debug for AuthorityMap
impl Debug for AuthorityMap
Source§impl Default for AuthorityMap
impl Default for AuthorityMap
impl Eq for AuthorityMap
Source§impl PartialEq for AuthorityMap
impl PartialEq for AuthorityMap
impl StructuralPartialEq for AuthorityMap
Auto Trait Implementations§
impl Freeze for AuthorityMap
impl RefUnwindSafe for AuthorityMap
impl Send for AuthorityMap
impl Sync for AuthorityMap
impl Unpin for AuthorityMap
impl UnsafeUnpin for AuthorityMap
impl UnwindSafe for AuthorityMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.