pub struct Tendermint<A> { /* private fields */ }
Expand description
Tendermint instance
Implementations§
Source§impl<A> Tendermint<A>
impl<A> Tendermint<A>
pub fn get_binary_path(&self) -> PathBuf
pub fn get_config_dir(&self) -> PathBuf
pub fn get_config_path(&self) -> PathBuf
pub fn get_node_key_path(&self) -> PathBuf
pub fn get_validator_key_path(&self) -> PathBuf
pub fn get_socket_dir(&self) -> PathBuf
pub fn get_p2p_dir(&self) -> PathBuf
pub fn get_app_path(&self) -> PathBuf
Source§impl<A> Tendermint<A>
impl<A> Tendermint<A>
pub fn new(app: A) -> Result<Self>
pub fn version(&self) -> Result<String>
Sourcepub fn start(
&mut self,
config: Config,
node_key: Keypair,
validator_key: Keypair,
genesis: Genesis<A::AppState>,
) -> Result<()>
pub fn start( &mut self, config: Config, node_key: Keypair, validator_key: Keypair, genesis: Genesis<A::AppState>, ) -> Result<()>
Start tendermint
Pass ABCI, Config, NodeKey, ValidatorKey, Genesis
pub fn stop(&mut self) -> Result<()>
pub fn kill(&mut self) -> Result<()>
pub fn wait(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Tendermint<A>where
A: Freeze,
impl<A> RefUnwindSafe for Tendermint<A>where
A: RefUnwindSafe,
impl<A> Send for Tendermint<A>where
A: Send,
impl<A> Sync for Tendermint<A>where
A: Sync,
impl<A> Unpin for Tendermint<A>where
A: Unpin,
impl<A> UnwindSafe for Tendermint<A>where
A: UnwindSafe,
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