[][src]Trait frame_support::traits::EnsureOrigin

pub trait EnsureOrigin<OuterOrigin> {
    type Success;
    pub fn try_origin(o: OuterOrigin) -> Result<Self::Success, OuterOrigin>;

    pub fn ensure_origin(o: OuterOrigin) -> Result<Self::Success, BadOrigin> { ... }
}

Some sort of check on the origin is performed by this object.

Associated Types

type Success[src]

A return type.

Loading content...

Required methods

pub fn try_origin(o: OuterOrigin) -> Result<Self::Success, OuterOrigin>[src]

Perform the origin check.

Loading content...

Provided methods

pub fn ensure_origin(o: OuterOrigin) -> Result<Self::Success, BadOrigin>[src]

Perform the origin check.

Loading content...

Implementors

Loading content...