Enum lite_session::Role[][src]

pub enum Role {
    SlaveNode,
    MasterNode,
    SuperNode,
    VerifierNode,
    RegistryNode,
    StorageNode,
    FirewallNode,
    RouterNode,
    SuperUser,
    Admin,
    User,
    Custom(String),
}

The client/server roles

Variants

SlaveNode

A slave node connected to a master node

MasterNode

A master node that handles slave nodes It may or may not be connected to an authoritative super node

SuperNode

An authoritative node that can handle master nodes and their slaves

VerifierNode

A node that handles verifying security, heartbeats, elections and lifetime of the nodes

RegistryNode

A node that acts as a service registry

StorageNode

A node that only handles storage of data

FirewallNode

A node that acts a firewall for blacklists/whitelists, DNS requests and networks access

RouterNode

A node that routes inbound and outbound requests

SuperUser

A client with highest level or root level permissions

Admin

A client with administrative capabilities

User

A normal client

Custom(String)

A client with a custom role

Implementations

impl Role[src]

pub fn from_str(role: &str) -> Self[src]

Converts a string Role to its enum variant

pub fn to_string(role: &Role) -> String[src]

COnverts a Role into a string text

Trait Implementations

impl Clone for Role[src]

impl Debug for Role[src]

impl Default for Role[src]

impl PartialEq<Role> for Role[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.