[][src]Trait tendermint_light_client::supervisor::Handle

pub trait Handle: Send + Sync {
    fn latest_trusted(&self) -> Result<Option<LightBlock>, Error>;
fn latest_status(&self) -> Result<LatestStatus, Error>;
fn verify_to_highest(&self) -> Result<LightBlock, Error>;
fn verify_to_target(&self, _height: Height) -> Result<LightBlock, Error>;
fn terminate(&self) -> Result<(), Error>; }

Provides an interface to the supervisor for use in downstream code.

Required methods

fn latest_trusted(&self) -> Result<Option<LightBlock>, Error>

Get latest trusted block.

fn latest_status(&self) -> Result<LatestStatus, Error>

Get the latest status.

fn verify_to_highest(&self) -> Result<LightBlock, Error>

Verify to the highest block.

fn verify_to_target(&self, _height: Height) -> Result<LightBlock, Error>

Verify to the block at the given height.

fn terminate(&self) -> Result<(), Error>

Terminate the underlying Supervisor.

Loading content...

Implementors

Loading content...