Struct mjolnir::mjolnir_lib::bootstrap::config::ClientLoadConfig
source · pub struct ClientLoadConfig {
block0_hash: Hash,
measure: bool,
count: u32,
address: String,
pace: u64,
initial_storage: Option<PathBuf>,
}
Fields§
§block0_hash: Hash
§measure: bool
§count: u32
§address: String
§pace: u64
§initial_storage: Option<PathBuf>
Implementations§
source§impl ClientLoadConfig
impl ClientLoadConfig
pub fn new( block0_hash: Hash, measure: bool, count: u32, address: String, pace: u64, initial_storage: Option<PathBuf> ) -> Self
pub fn trusted_peer(&self) -> TrustedPeer
pub fn pace(&self) -> u64
pub fn block0_hash(&self) -> &Hash
pub fn measure(&self) -> bool
pub fn count(&self) -> u32
pub fn initial_storage(&self) -> &Option<PathBuf>
Trait Implementations§
source§impl Clone for ClientLoadConfig
impl Clone for ClientLoadConfig
source§fn clone(&self) -> ClientLoadConfig
fn clone(&self) -> ClientLoadConfig
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 ClientLoadConfig
impl Send for ClientLoadConfig
impl Sync for ClientLoadConfig
impl Unpin for ClientLoadConfig
impl UnwindSafe for ClientLoadConfig
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