pub trait AuctionStoreRead: StateRead {
// Provided methods
fn auction_id_exists<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_dutch_auction_by_id<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = Result<Option<DutchAuction>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_raw_auction<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = Option<Any>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Available on crate feature
component
only.Expand description
Provide access to internal auction data.
Provided Methods§
Sourcefn auction_id_exists<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn auction_id_exists<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Returns whether the supplied auction_id
exists in the chain state.
Sourcefn get_dutch_auction_by_id<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = Result<Option<DutchAuction>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_dutch_auction_by_id<'life0, 'async_trait>(
&'life0 self,
auction_id: AuctionId,
) -> Pin<Box<dyn Future<Output = Result<Option<DutchAuction>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Fetch a DutchAuction
from storage, returning None
if none
were found with the provided identifier.
§Errors
This method returns an error if the auction state associated with the
specified auction_id
is not of type DutchAuction
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.