pub enum NodeType {
Full,
Relay,
Gateway,
Bootstrap,
Archive,
}
Expand description
Node type
Variantsยง
Full
Full node (hosts organisms)
Relay
Relay node (forwards messages)
Gateway
Gateway node (connects to external networks)
Bootstrap
Bootstrap node (helps with discovery)
Archive
Archive node (stores historical data)
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for NodeType
impl<'de> Deserialize<'de> for NodeType
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
Auto Trait Implementationsยง
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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