Enum lite_session::Role [−][src]
The client/server roles
Variants
A slave node connected to a master node
A master node that handles slave nodes It may or may not be connected to an authoritative super node
An authoritative node that can handle master nodes and their slaves
A node that handles verifying security, heartbeats, elections and lifetime of the nodes
A node that acts as a service registry
A node that only handles storage of data
A node that acts a firewall for blacklists/whitelists, DNS requests and networks access
A node that routes inbound and outbound requests
A client with highest level or root level permissions
A client with administrative capabilities
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]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Role
[src]
impl Default for Role
[src]
impl PartialEq<Role> 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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,