pub struct ExplorerProcess {
handler: Option<Child>,
configuration: ExplorerConfiguration,
client: Explorer,
}
Fields§
§handler: Option<Child>
§configuration: ExplorerConfiguration
§client: Explorer
Implementations§
source§impl ExplorerProcess
impl ExplorerProcess
pub fn new(configuration: ExplorerConfiguration) -> Result<Self, ExplorerError>
sourcepub fn client(&self) -> &Explorer
pub fn client(&self) -> &Explorer
get an explorer client configured to use this instance.
take into account that while the Explorer client itself is Clone, if the ExplorerProcess gets dropped then the client will become useless.
pub fn client_mut(&mut self) -> &mut Explorer
pub fn is_up(&self) -> bool
pub fn wait_to_be_up(&self, seconds_wait: u64, attempts: u64) -> bool
pub fn configuration(&self) -> &ExplorerConfiguration
pub fn shutdown(self) -> Option<Output>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExplorerProcess
impl Send for ExplorerProcess
impl Sync for ExplorerProcess
impl Unpin for ExplorerProcess
impl UnwindSafe for ExplorerProcess
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