Enum noble_democracy::RawEvent[][src]

pub enum RawEvent<Balance, AccountId, Hash, BlockNumber> {
    Proposed(PropIndex, Balance),
    Tabled(PropIndex, Balance, Vec<AccountId>),
    ExternalTabled,
    Started(ReferendumIndexVoteThreshold),
    Passed(ReferendumIndex),
    NotPassed(ReferendumIndex),
    Cancelled(ReferendumIndex),
    Executed(ReferendumIndexbool),
    Delegated(AccountId, AccountId),
    Undelegated(AccountId),
    Vetoed(AccountId, Hash, BlockNumber),
    PreimageNoted(Hash, AccountId, Balance),
    PreimageUsed(Hash, AccountId, Balance),
    PreimageInvalid(Hash, ReferendumIndex),
    PreimageMissing(Hash, ReferendumIndex),
    PreimageReaped(Hash, AccountId, Balance, AccountId),
    Unlocked(AccountId),
    Blacklisted(Hash),
}

Events for this module.

Variants

Proposed(PropIndex, Balance)

A motion has been proposed by a public account. [proposal_index, deposit]

Tabled(PropIndex, Balance, Vec<AccountId>)

A public proposal has been tabled for referendum vote. [proposal_index, deposit, depositors]

ExternalTabled

An external proposal has been tabled.

A referendum has begun. [ref_index, threshold]

A proposal has been approved by referendum. [ref_index]

NotPassed(ReferendumIndex)

A proposal has been rejected by referendum. [ref_index]

Cancelled(ReferendumIndex)

A referendum has been cancelled. [ref_index]

Executed(ReferendumIndexbool)

A proposal has been enacted. [ref_index, is_ok]

Delegated(AccountId, AccountId)

An account has delegated their vote to another account. [who, target]

Undelegated(AccountId)

An [account] has cancelled a previous delegation operation.

Vetoed(AccountId, Hash, BlockNumber)

An external proposal has been vetoed. [who, proposal_hash, until]

PreimageNoted(Hash, AccountId, Balance)

A proposal’s preimage was noted, and the deposit taken. [proposal_hash, who, deposit]

PreimageUsed(Hash, AccountId, Balance)

A proposal preimage was removed and used (the deposit was returned). [proposal_hash, provider, deposit]

PreimageInvalid(Hash, ReferendumIndex)

A proposal could not be executed because its preimage was invalid. [proposal_hash, ref_index]

PreimageMissing(Hash, ReferendumIndex)

A proposal could not be executed because its preimage was missing. [proposal_hash, ref_index]

PreimageReaped(Hash, AccountId, Balance, AccountId)

A registered preimage was removed and the deposit collected by the reaper. [proposal_hash, provider, deposit, reaper]

Unlocked(AccountId)

An [account] has been unlocked successfully.

Blacklisted(Hash)

A proposal [hash] has been blacklisted permanently.

Trait Implementations

impl<Balance: Clone, AccountId: Clone, Hash: Clone, BlockNumber: Clone> Clone for RawEvent<Balance, AccountId, Hash, BlockNumber>[src]

impl<Balance, AccountId, Hash, BlockNumber> Debug for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    Balance: Debug,
    AccountId: Debug,
    Hash: Debug,
    BlockNumber: Debug
[src]

impl<Balance, AccountId, Hash, BlockNumber> Decode for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    Balance: Decode,
    Balance: Decode,
    Balance: Decode,
    Balance: Decode,
    Vec<AccountId>: Decode,
    Vec<AccountId>: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Hash: Decode,
    Hash: Decode,
    BlockNumber: Decode,
    BlockNumber: Decode,
    Hash: Decode,
    Hash: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Balance: Decode,
    Balance: Decode,
    Hash: Decode,
    Hash: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Balance: Decode,
    Balance: Decode,
    Hash: Decode,
    Hash: Decode,
    Hash: Decode,
    Hash: Decode,
    Hash: Decode,
    Hash: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Balance: Decode,
    Balance: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    AccountId: Decode,
    Hash: Decode,
    Hash: Decode
[src]

impl<Balance, AccountId, Hash, BlockNumber> Encode for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    Balance: Encode,
    Balance: Encode,
    Balance: Encode,
    Balance: Encode,
    Vec<AccountId>: Encode,
    Vec<AccountId>: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Hash: Encode,
    Hash: Encode,
    BlockNumber: Encode,
    BlockNumber: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Hash: Encode,
    Hash: Encode
[src]

impl<Balance, AccountId, Hash, BlockNumber> EncodeLike<RawEvent<Balance, AccountId, Hash, BlockNumber>> for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    Balance: Encode,
    Balance: Encode,
    Balance: Encode,
    Balance: Encode,
    Vec<AccountId>: Encode,
    Vec<AccountId>: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Hash: Encode,
    Hash: Encode,
    BlockNumber: Encode,
    BlockNumber: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    Hash: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Balance: Encode,
    Balance: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    AccountId: Encode,
    Hash: Encode,
    Hash: Encode
[src]

impl<Balance: Eq, AccountId: Eq, Hash: Eq, BlockNumber: Eq> Eq for RawEvent<Balance, AccountId, Hash, BlockNumber>[src]

impl<Balance: PartialEq, AccountId: PartialEq, Hash: PartialEq, BlockNumber: PartialEq> PartialEq<RawEvent<Balance, AccountId, Hash, BlockNumber>> for RawEvent<Balance, AccountId, Hash, BlockNumber>[src]

impl<Balance, AccountId, Hash, BlockNumber> StructuralEq for RawEvent<Balance, AccountId, Hash, BlockNumber>[src]

impl<Balance, AccountId, Hash, BlockNumber> StructuralPartialEq for RawEvent<Balance, AccountId, Hash, BlockNumber>[src]

Auto Trait Implementations

impl<Balance, AccountId, Hash, BlockNumber> RefUnwindSafe for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    AccountId: RefUnwindSafe,
    Balance: RefUnwindSafe,
    BlockNumber: RefUnwindSafe,
    Hash: RefUnwindSafe

impl<Balance, AccountId, Hash, BlockNumber> Send for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    AccountId: Send,
    Balance: Send,
    BlockNumber: Send,
    Hash: Send

impl<Balance, AccountId, Hash, BlockNumber> Sync for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    AccountId: Sync,
    Balance: Sync,
    BlockNumber: Sync,
    Hash: Sync

impl<Balance, AccountId, Hash, BlockNumber> Unpin for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    AccountId: Unpin,
    Balance: Unpin,
    BlockNumber: Unpin,
    Hash: Unpin

impl<Balance, AccountId, Hash, BlockNumber> UnwindSafe for RawEvent<Balance, AccountId, Hash, BlockNumber> where
    AccountId: UnwindSafe,
    Balance: UnwindSafe,
    BlockNumber: UnwindSafe,
    Hash: 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<S> Codec for S where
    S: Decode + Encode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Hashable for T where
    T: Codec
[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>, 

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,