pub struct Binding { /* private fields */ }Expand description
A role’s binding, its entries in their configured order (core R1, R3).
Implementations§
Source§impl Binding
impl Binding
Sourcepub fn parse<S: AsRef<str>>(entries: &[S]) -> Result<Self, KeyError>
pub fn parse<S: AsRef<str>>(entries: &[S]) -> Result<Self, KeyError>
Parses a binding as a descriptor lists it.
Sourcepub fn rank(&self, a: &Addr) -> Option<Rank>
pub fn rank(&self, a: &Addr) -> Option<Rank>
An address’s rank, None when no entry matches it (§2.4).
Sourcepub fn ranked<'a, I: IntoIterator<Item = &'a Addr>>(
&self,
heard: I,
) -> Vec<Addr>
pub fn ranked<'a, I: IntoIterator<Item = &'a Addr>>( &self, heard: I, ) -> Vec<Addr>
The providers in rank order: every exact entry’s address, heard or not, and every heard address an entry matches, once each (§2.4).
Trait Implementations§
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Forget for Binding
impl Freeze for Binding
impl Move for Binding
impl RefUnwindSafe for Binding
impl Send for Bindingwhere
RawVecInner: Send,
impl Sync for Bindingwhere
RawVecInner: Sync,
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Bindingwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more