Struct jormungandr_automation::jormungandr::Starter
source · pub struct Starter {
jormungandr_app_path: Option<PathBuf>,
configured_starter: ConfiguredStarter,
alias: String,
temp_dir: Option<TestingDirectory>,
config: Option<JormungandrParams>,
benchmark: Option<SpeedBenchmarkDef>,
}
Fields§
§jormungandr_app_path: Option<PathBuf>
§configured_starter: ConfiguredStarter
§alias: String
§temp_dir: Option<TestingDirectory>
§config: Option<JormungandrParams>
§benchmark: Option<SpeedBenchmarkDef>
Implementations§
source§impl Starter
impl Starter
pub fn alias(self, alias: String) -> Self
pub fn jormungandr_app(self, path: PathBuf) -> Self
pub fn jormungandr_app_option(self, path: &Option<PathBuf>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn benchmark(self, name: &str) -> Self
pub fn verify_by(self, verification_mode: StartupVerificationMode) -> Self
pub fn on_fail(self, on_fail: OnFail) -> Self
pub fn config(self, config: JormungandrParams) -> Self
pub fn temp_dir(self, temp_dir: TempDir) -> Self
pub fn working_dir(self, path: &Path) -> Self
pub fn testing_dir(self, testing_directory: TestingDirectory) -> Self
pub fn verbose(self, verbose: bool) -> Self
fn get_jormungandr_app_path(&self) -> PathBuf
pub fn start_benchmark_run(&self) -> Option<SpeedBenchmarkRun>
pub fn start_with_fail_in_logs( self, expected_msg_in_logs: &str ) -> Result<(), StartupError>
pub fn start_async(self) -> Result<JormungandrProcess, StartupError>
pub fn start(self) -> Result<JormungandrProcess, StartupError>
pub fn start_should_fail_with_message( self, expected_msg: &str ) -> Result<(), StartupError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Starter
impl !Send for Starter
impl !Sync for Starter
impl Unpin for Starter
impl !UnwindSafe for Starter
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