Struct jormungandr_automation::jormungandr::starter::commands::CommandBuilder
source · pub struct CommandBuilder {
bin: PathBuf,
config: Option<PathBuf>,
genesis_block: Option<NodeBlock0>,
secret: Option<PathBuf>,
log_file: Option<PathBuf>,
rewards_history: bool,
faketime: Option<FaketimeConfig>,
}
Fields§
§bin: PathBuf
§config: Option<PathBuf>
§genesis_block: Option<NodeBlock0>
§secret: Option<PathBuf>
§log_file: Option<PathBuf>
§rewards_history: bool
§faketime: Option<FaketimeConfig>
Implementations§
source§impl CommandBuilder
impl CommandBuilder
pub fn new(bin: &Path) -> Self
pub fn config(self, path: &Path) -> Self
pub fn faketime(self, faketime: FaketimeConfig) -> Self
pub fn genesis_block_hash(self, hash: Hash) -> Self
pub fn genesis_block_path(self, path: &Path) -> Self
pub fn leader_with_secret(self, secret: &Path) -> Self
pub fn stderr_to_log_file(self, path: &Path) -> Self
pub fn rewards_history(self, report: bool) -> Self
pub fn command(self) -> Command
Auto Trait Implementations§
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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