Struct sp_core::offchain::Capabilities [−][src]
pub struct Capabilities(_);
A set of capabilities
Implementations
impl Capabilities
[src]
impl Capabilities
[src]pub fn none() -> Self
[src]
Return an object representing an empty set of capabilities.
pub fn all() -> Self
[src]
Return an object representing all capabilities enabled.
pub fn rich_offchain_call() -> Self
[src]
Return capabilities for rich offchain calls.
Those calls should be allowed to sign and submit transactions and access offchain workers database (but read only!).
pub fn has(&self, capability: Capability) -> bool
[src]
Check if particular capability is enabled.
pub fn has_all(&self) -> bool
[src]
Check if this capability object represents all capabilities.
Trait Implementations
impl Clone for Capabilities
[src]
impl Clone for Capabilities
[src]fn clone(&self) -> Capabilities
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> From<&'a [Capability]> for Capabilities
[src]
impl<'a> From<&'a [Capability]> for Capabilities
[src]fn from(list: &'a [Capability]) -> Self
[src]
impl PartialEq<Capabilities> for Capabilities
[src]
impl PartialEq<Capabilities> for Capabilities
[src]fn eq(&self, other: &Capabilities) -> bool
[src]
fn ne(&self, other: &Capabilities) -> bool
[src]
impl Copy for Capabilities
[src]
impl Eq for Capabilities
[src]
impl StructuralEq for Capabilities
[src]
impl StructuralPartialEq for Capabilities
[src]
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(Self) -> T
[src]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,