Struct frame_system::EnsureOneOf[][src]

pub struct EnsureOneOf<AccountId, L, R>(_);

The “OR gate” implementation of EnsureOrigin.

Origin check will pass if L or R origin check passes. L is tested first.

Trait Implementations

impl<AccountId, O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, L: EnsureOrigin<O>, R: EnsureOrigin<O>> EnsureOrigin<O> for EnsureOneOf<AccountId, L, R>[src]

type Success = Either<L::Success, R::Success>

A return type.

Auto Trait Implementations

impl<AccountId, L, R> RefUnwindSafe for EnsureOneOf<AccountId, L, R> where
    AccountId: RefUnwindSafe,
    L: RefUnwindSafe,
    R: RefUnwindSafe

impl<AccountId, L, R> Send for EnsureOneOf<AccountId, L, R> where
    AccountId: Send,
    L: Send,
    R: Send

impl<AccountId, L, R> Sync for EnsureOneOf<AccountId, L, R> where
    AccountId: Sync,
    L: Sync,
    R: Sync

impl<AccountId, L, R> Unpin for EnsureOneOf<AccountId, L, R> where
    AccountId: Unpin,
    L: Unpin,
    R: Unpin

impl<AccountId, L, R> UnwindSafe for EnsureOneOf<AccountId, L, R> where
    AccountId: UnwindSafe,
    L: UnwindSafe,
    R: UnwindSafe

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<T> CheckedConversion for T[src]

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

impl<T> Instrument for T[src]

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

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

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.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]