pub struct LegacyNodeConfigConverter {
version: Version,
}
Fields§
§version: Version
Implementations§
source§impl LegacyNodeConfigConverter
impl LegacyNodeConfigConverter
pub fn new(version: Version) -> Self
sourcepub fn convert(&self, source: &NodeConfig) -> Result<LegacyNodeConfig, Error>
pub fn convert(&self, source: &NodeConfig) -> Result<LegacyNodeConfig, Error>
0.8.19 is a breaking point where in trusted peer id was obsoleted
fn build_node_config_after_0_13_0( &self, source: &NodeConfig ) -> LegacyNodeConfig
fn build_node_config_after_0_12_0( &self, source: &NodeConfig ) -> LegacyNodeConfig
fn generate_legacy_poldercast_id(rng: &mut OsRng) -> String
fn build_node_config_before_0_8_19( &self, source: &NodeConfig ) -> LegacyNodeConfig
Auto Trait Implementations§
impl RefUnwindSafe for LegacyNodeConfigConverter
impl Send for LegacyNodeConfigConverter
impl Sync for LegacyNodeConfigConverter
impl Unpin for LegacyNodeConfigConverter
impl UnwindSafe for LegacyNodeConfigConverter
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