Struct pallet_aura::pallet::Pallet [−][src]
pub struct Pallet<T>(_);
Implementations
impl<T: Config> Pallet<T>
[src]
impl<T: Config> Pallet<T>
[src]pub fn authorities() -> Vec<T::AuthorityId>
[src]
The current authority set.
impl<T: Config> Pallet<T>
[src]
impl<T: Config> Pallet<T>
[src]pub fn current_slot() -> Slot
[src]
The current slot of this block.
This will be set in on_initialize
.
impl<T: Config> Pallet<T>
[src]
impl<T: Config> Pallet<T>
[src]pub fn slot_duration() -> T::Moment
[src]
Determine the Aura slot-duration based on the Timestamp module configuration.
Trait Implementations
impl<T: Config> BoundToRuntimeAppPublic for Pallet<T>
[src]
impl<T: Config> BoundToRuntimeAppPublic for Pallet<T>
[src]type Public = T::AuthorityId
The RuntimeAppPublic
this type is bound to.
impl<T> Clone for Pallet<T>
[src]
impl<T> Clone for Pallet<T>
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Config> FindAuthor<u32> for Pallet<T>
[src]
impl<T: Config> FindAuthor<u32> for Pallet<T>
[src]fn find_author<'a, I>(digests: I) -> Option<u32> where
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
[src]
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
impl<T: Config> GetPalletVersion for Pallet<T>
[src]
impl<T: Config> GetPalletVersion for Pallet<T>
[src]fn current_version() -> PalletVersion
[src]
fn storage_version() -> Option<PalletVersion>
[src]
impl<T: Config> Hooks<<T as Config>::BlockNumber> for Pallet<T>
[src]
impl<T: Config> Hooks<<T as Config>::BlockNumber> for Pallet<T>
[src]fn on_initialize(_: T::BlockNumber) -> Weight
[src]
pub fn on_finalize(_n: BlockNumber)
[src]
pub fn on_runtime_upgrade() -> u64
[src]
pub fn offchain_worker(_n: BlockNumber)
[src]
pub fn integrity_test()
[src]
impl<T: Config> IntegrityTest for Pallet<T>
[src]
impl<T: Config> IntegrityTest for Pallet<T>
[src]fn integrity_test()
[src]
impl<T: Config> IsMember<<T as Config>::AuthorityId> for Pallet<T>
[src]
impl<T: Config> IsMember<<T as Config>::AuthorityId> for Pallet<T>
[src]fn is_member(authority_id: &T::AuthorityId) -> bool
[src]
impl<T: Config> ModuleErrorMetadata for Pallet<T>
[src]
impl<T: Config> ModuleErrorMetadata for Pallet<T>
[src]impl<T: Config> OffchainWorker<<T as Config>::BlockNumber> for Pallet<T>
[src]
impl<T: Config> OffchainWorker<<T as Config>::BlockNumber> for Pallet<T>
[src]fn offchain_worker(n: <T as Config>::BlockNumber)
[src]
impl<T: Config> OnFinalize<<T as Config>::BlockNumber> for Pallet<T>
[src]
impl<T: Config> OnFinalize<<T as Config>::BlockNumber> for Pallet<T>
[src]fn on_finalize(n: <T as Config>::BlockNumber)
[src]
impl<T: Config> OnInitialize<<T as Config>::BlockNumber> for Pallet<T>
[src]
impl<T: Config> OnInitialize<<T as Config>::BlockNumber> for Pallet<T>
[src]fn on_initialize(n: <T as Config>::BlockNumber) -> Weight
[src]
impl<T: Config> OnRuntimeUpgrade for Pallet<T>
[src]
impl<T: Config> OnRuntimeUpgrade for Pallet<T>
[src]fn on_runtime_upgrade() -> Weight
[src]
impl<T: Config> OnTimestampSet<<T as Config>::Moment> for Pallet<T>
[src]
impl<T: Config> OnTimestampSet<<T as Config>::Moment> for Pallet<T>
[src]fn on_timestamp_set(moment: T::Moment)
[src]
impl<T: Config> OneSessionHandler<<T as Config>::AccountId> for Pallet<T>
[src]
impl<T: Config> OneSessionHandler<<T as Config>::AccountId> for Pallet<T>
[src]type Key = T::AuthorityId
The key type expected.
fn on_genesis_session<'a, I: 'a>(validators: I) where
I: Iterator<Item = (&'a T::AccountId, T::AuthorityId)>,
[src]
I: Iterator<Item = (&'a T::AccountId, T::AuthorityId)>,
fn on_new_session<'a, I: 'a>(
changed: bool,
validators: I,
_queued_validators: I
) where
I: Iterator<Item = (&'a T::AccountId, T::AuthorityId)>,
[src]
changed: bool,
validators: I,
_queued_validators: I
) where
I: Iterator<Item = (&'a T::AccountId, T::AuthorityId)>,
fn on_disabled(i: usize)
[src]
pub fn on_before_session_ending()
[src]
impl<T> Eq for Pallet<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Pallet<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Pallet<T> where
T: Send,
T: Send,
impl<T> Sync for Pallet<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Pallet<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Pallet<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> CheckedConversion for T
[src]
impl<T> CheckedConversion for T
[src]pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
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<T> SaturatedConversion for T
[src]
impl<T> SaturatedConversion for T
[src]pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
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, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]pub fn unique_saturated_into(self) -> T
[src]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
[src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,