[−][src]Struct osauth::ValidInterfaces
A list of acceptable interface types.
Implementations
impl ValidInterfaces[src]
pub fn append(&mut self, other: &ValidInterfaces)[src]
Append all items from another collection.
Any duplicates are ignored.
pub fn check(&self, endpoint: &Endpoint) -> bool[src]
Whether the interfaces match the provided endpoint.
pub fn one(item: InterfaceType) -> ValidInterfaces[src]
One valid interface.
pub fn push(&mut self, item: InterfaceType) -> bool[src]
Add an item to the end.
Returns true if the item was added and false on duplicate.
Trait Implementations
impl AsRef<[InterfaceType]> for ValidInterfaces[src]
fn as_ref(&self) -> &[InterfaceType][src]
impl Clone for ValidInterfaces[src]
fn clone(&self) -> ValidInterfaces[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ValidInterfaces[src]
impl Debug for ValidInterfaces[src]
impl Default for ValidInterfaces[src]
fn default() -> ValidInterfaces[src]
Defaults to "public".
impl Deref for ValidInterfaces[src]
type Target = [InterfaceType]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl Eq for ValidInterfaces[src]
impl<'_> From<&'_ [InterfaceType]> for ValidInterfaces[src]
fn from(value: &[InterfaceType]) -> ValidInterfaces[src]
impl From<InterfaceType> for ValidInterfaces[src]
fn from(value: InterfaceType) -> ValidInterfaces[src]
impl From<Vec<InterfaceType>> for ValidInterfaces[src]
fn from(value: Vec<InterfaceType>) -> ValidInterfaces[src]
impl<'s> FromIterator<&'s InterfaceType> for ValidInterfaces[src]
fn from_iter<T: IntoIterator<Item = &'s InterfaceType>>(iter: T) -> Self[src]
Create from an iterator of interface types.
Any duplicates are ignored.
impl FromIterator<InterfaceType> for ValidInterfaces[src]
fn from_iter<T: IntoIterator<Item = InterfaceType>>(iter: T) -> Self[src]
Create from an iterator of interface types.
Any duplicates are ignored.
impl Hash for ValidInterfaces[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<ValidInterfaces> for ValidInterfaces[src]
fn eq(&self, other: &ValidInterfaces) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for ValidInterfaces[src]
Auto Trait Implementations
impl RefUnwindSafe for ValidInterfaces
impl Send for ValidInterfaces
impl Sync for ValidInterfaces
impl Unpin for ValidInterfaces
impl UnwindSafe for ValidInterfaces
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,