[][src]Enum sc_service::Role

pub enum Role {
    Sentry {
        validators: Vec<MultiaddrWithPeerId, Global>,
    Authority {
        sentry_nodes: Vec<MultiaddrWithPeerId, Global>,

Role of the local node.



Regular full node.


Regular light node.


Sentry node that guards an authority. Will be reported as "authority" on the wire protocol.

Fields of Sentry

validators: Vec<MultiaddrWithPeerId, Global>

Address and identity of the validator nodes that we're guarding.

The nodes will be granted some priviledged status.


Actual authority.

Fields of Authority

sentry_nodes: Vec<MultiaddrWithPeerId, Global>

List of public addresses and identities of our sentry nodes.


impl Role[src]

pub fn is_authority(&self) -> bool[src]

True for Role::Authority

pub fn is_network_authority(&self) -> bool[src]

True for Role::Authority and Role::Sentry since they're both announced as having the authority role to the network.

Trait Implementations

impl Clone for Role[src]

impl Debug for Role[src]

impl Display for Role[src]

Auto Trait Implementations

impl RefUnwindSafe for Role[src]

impl Send for Role[src]

impl Sync for Role[src]

impl Unpin for Role[src]

impl UnwindSafe for Role[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CheckedConversion for T[src]

impl<T> DynClone for T where
    T: Clone

impl<T> Erased for T[src]

impl<T> Error for T where
    T: 'static + Send + Debug + Display

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

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> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDisplay for T where
    T: Display

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

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

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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
    S: TryInto<T>,
    T: Bounded

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