[][src]Struct osauth::ValidInterfaces

pub struct ValidInterfaces { /* fields omitted */ }

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]

impl Clone for ValidInterfaces[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.

impl Eq for ValidInterfaces[src]

impl<'_> From<&'_ [InterfaceType]> for ValidInterfaces[src]

impl From<InterfaceType> for ValidInterfaces[src]

impl From<Vec<InterfaceType>> for 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]

impl PartialEq<ValidInterfaces> for ValidInterfaces[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.