pub struct LegacyNodeConfigBuilder {
version: Version,
config: NodeConfig,
}
Expand description
Used to build configuration for legacy nodes. It uses yaml_rust instead of serde yaml serializer beacuse config model is always up to date with newest config schema while legacy node requires na old one
Fields§
§version: Version
§config: NodeConfig
Implementations§
source§impl LegacyNodeConfigBuilder
impl LegacyNodeConfigBuilder
pub fn with_trusted_peers(self, trusted_peer: Vec<NewestTrustedPeer>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LegacyNodeConfigBuilder
impl Send for LegacyNodeConfigBuilder
impl Sync for LegacyNodeConfigBuilder
impl Unpin for LegacyNodeConfigBuilder
impl UnwindSafe for LegacyNodeConfigBuilder
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