pub struct Plutip { /* private fields */ }

Implementations§

source§

impl Plutip

source

pub async fn start(config: PlutipConfig) -> Result<Self, PlutipError>

Launching the Plutip local cluster Once the handler goes out of scope, the local cluster will be killed

source

pub async fn get_wallet( &self, wallet_idx: usize ) -> Result<KeyWallet, PlutipError>

Get a wallet by an index generated and funded by Plutip

source

pub async fn get_own_wallet(&self) -> Result<KeyWallet, PlutipError>

Get the first wallet generated and funded by Plutip

source

pub fn get_node_socket(&self) -> PathBuf

Get the path to the active cardano-node socket

source

pub fn get_network(&self) -> Network

Get the Cardano network discriminant

source

pub async fn get_node_config_path(&self) -> PathBuf

Get the path cardano-node configuration file

source

pub fn kill(&mut self) -> Result<(), Error>

Kill plutip process

source

pub fn cleanup(&mut self) -> Result<(), Error>

Cleanup all resources used by plutip

Trait Implementations§

source§

impl Drop for Plutip

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl Freeze for Plutip

§

impl RefUnwindSafe for Plutip

§

impl Send for Plutip

§

impl Sync for Plutip

§

impl Unpin for Plutip

§

impl UnwindSafe for Plutip

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> ToPLA<U> for T
where U: FromCSL<T>,

§

fn to_pla(&self) -> U

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryToCSL<U> for T
where U: TryFromPLA<T>,

§

type ExtraInfo<'a> = <U as TryFromPLA<T>>::ExtraInfo<'a>

§

fn try_to_csl_with<'a>( &self, extra_info: <T as TryToCSL<U>>::ExtraInfo<'a> ) -> Result<U, TryFromPLAError>

§

impl<T, U> TryToCSLWithDef<U> for T
where U: TryFromPLAWithDef<T> + TryFromPLA<T>,

§

fn try_to_csl(&self) -> Result<U, TryFromPLAError>

§

impl<T, U> TryToPLA<U> for T
where U: TryFromCSL<T>,

§

fn try_to_pla(&self) -> Result<U, TryFromCSLError>

§

impl<T, U> TryToPLAWith<U> for T
where U: TryFromCSLWith<T>,

§

type ExtraInfo<'a> = <U as TryFromCSLWith<T>>::ExtraInfo<'a>

§

fn try_to_pla_with<'a>( &self, extra_info: <T as TryToPLAWith<U>>::ExtraInfo<'a> ) -> Result<U, TryFromCSLError>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V