pub enum NetworkRole {
Validator,
FullNode,
LightClient,
TeeProvider,
ModelProvider,
StorageProvider,
Archive,
Bootstrap,
MicroNode,
}Expand description
The role of a node in the Tenzro Network
Variants§
Validator
Full validator node
FullNode
Full node (non-validating)
LightClient
Light client
TeeProvider
TEE provider node
ModelProvider
Model inference provider node
StorageProvider
Storage provider node
Archive
Archive node (stores full history)
Bootstrap
Bootstrap/seed node
MicroNode
Micro node / participant — ultra-lightweight, no P2P required. Humans or AI agents joining via MCP server, Claude, ClawBot, or other agentic frameworks. Auto-provisioned DID + MPC wallet.
Implementations§
Source§impl NetworkRole
impl NetworkRole
Sourcepub fn is_validator(&self) -> bool
pub fn is_validator(&self) -> bool
Checks if this role can validate blocks
Sourcepub fn is_provider(&self) -> bool
pub fn is_provider(&self) -> bool
Checks if this role is a provider
Sourcepub fn is_full_node(&self) -> bool
pub fn is_full_node(&self) -> bool
Checks if this role maintains full state
Sourcepub fn is_micro_node(&self) -> bool
pub fn is_micro_node(&self) -> bool
Checks if this role is a micro node (zero-install participant)
Trait Implementations§
Source§impl Clone for NetworkRole
impl Clone for NetworkRole
Source§fn clone(&self) -> NetworkRole
fn clone(&self) -> NetworkRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetworkRole
Source§impl Debug for NetworkRole
impl Debug for NetworkRole
Source§impl<'de> Deserialize<'de> for NetworkRole
impl<'de> Deserialize<'de> for NetworkRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NetworkRole
Source§impl Hash for NetworkRole
impl Hash for NetworkRole
Source§impl PartialEq for NetworkRole
impl PartialEq for NetworkRole
Source§fn eq(&self, other: &NetworkRole) -> bool
fn eq(&self, other: &NetworkRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NetworkRole
impl Serialize for NetworkRole
impl StructuralPartialEq for NetworkRole
Auto Trait Implementations§
impl Freeze for NetworkRole
impl RefUnwindSafe for NetworkRole
impl Send for NetworkRole
impl Sync for NetworkRole
impl Unpin for NetworkRole
impl UnsafeUnpin for NetworkRole
impl UnwindSafe for NetworkRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more