Struct hersir::builder::settings::NodeSetting
source · pub struct NodeSetting {
pub alias: NodeAlias,
pub secret: NodeSecret,
pub config: NodeConfig,
pub topology_secret: SigningKey<Ed25519>,
pub node_topology: Node,
}
Expand description
contains all the data to start or interact with a node
Fields§
§alias: NodeAlias
for reference purpose only
secret: NodeSecret
node secret, this will be passed to the node at start up of the node. It may contains the necessary crypto for the node to be a blockchain leader (BFT leader or stake pool)
config: NodeConfig
§topology_secret: SigningKey<Ed25519>
§node_topology: Node
Trait Implementations§
source§impl Clone for NodeSetting
impl Clone for NodeSetting
source§fn clone(&self) -> NodeSetting
fn clone(&self) -> NodeSetting
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for NodeSetting
impl Send for NodeSetting
impl Sync for NodeSetting
impl Unpin for NodeSetting
impl UnwindSafe for NodeSetting
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request