Struct filament_app::App
source · pub struct App {
components: Vec<Component>,
state: Arc<StateDelta<Snapshot>>,
}Expand description
The filament ABCI application modeled as stack of Components.
Fields§
§components: Vec<Component>§state: Arc<StateDelta<Snapshot>>Implementations§
source§impl App
impl App
pub fn new(snapshot: Snapshot) -> Self
pub async fn init_chain(&mut self, app_state: &AppState)
sourcepub async fn query(&self, query: &Query) -> Result<Query>
pub async fn query(&self, query: &Query) -> Result<Query>
- Query for data from the application at current or past height.
- Optionally return Merkle proof.
- Merkle proof includes self-describing type field to support many types of Merkle trees and encoding formats.
https://github.com/tendermint/tendermint/blob/main/spec/abci/abci.md#query-1
pub async fn begin_block(&mut self, begin_block: &BeginBlock) -> Vec<Event>
pub async fn deliver_tx(&mut self, tx: Transaction) -> Result<Vec<Event>>
pub async fn deliver_tx_bytes(&mut self, tx_bytes: &[u8]) -> Result<Vec<Event>>
pub async fn end_block( &mut self, end_block: &EndBlock ) -> (Vec<Update>, Option<Params>, Vec<Event>)
pub async fn commit(&mut self, storage: Storage) -> AppHash
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl !UnwindSafe for App
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