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

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

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

Required methods

pub fn latest_trusted(&self) -> Result<Option<LightBlock>, Error>[src]

Get latest trusted block.

pub fn latest_status(&self) -> Result<LatestStatus, Error>[src]

Get the latest status.

pub fn verify_to_highest(&self) -> Result<LightBlock, Error>[src]

Verify to the highest block.

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

Verify to the block at the given height.

pub fn terminate(&self) -> Result<(), Error>[src]

Terminate the underlying Supervisor.

Loading content...

Implementors

Loading content...