pub trait StashReadProvider {
type Error: Clone + Eq + Error;
Show 14 methods
// Required methods
fn type_system(&self) -> Result<&TypeSystem, Self::Error>;
fn lib(&self, id: LibId) -> Result<&Lib, ProviderError<Self::Error>>;
fn schemata(&self) -> Result<impl Iterator<Item = &Schema>, Self::Error>;
fn schema(
&self,
schema_id: SchemaId,
) -> Result<&Schema, ProviderError<Self::Error>>;
fn geneses(&self) -> Result<impl Iterator<Item = &Genesis>, Self::Error>;
fn genesis(
&self,
contract_id: ContractId,
) -> Result<&Genesis, ProviderError<Self::Error>>;
fn witness_ids(&self) -> Result<impl Iterator<Item = Txid>, Self::Error>;
fn bundle_ids(&self) -> Result<impl Iterator<Item = BundleId>, Self::Error>;
fn bundle(
&self,
bundle_id: BundleId,
) -> Result<&TransitionBundle, ProviderError<Self::Error>>;
fn witness(
&self,
witness_id: Txid,
) -> Result<&SealWitness, ProviderError<Self::Error>>;
fn taprets(
&self,
) -> Result<impl Iterator<Item = (Txid, TapretCommitment)>, Self::Error>;
fn seal_secret(
&self,
secret: SecretSeal,
) -> Result<Option<BlindSeal<TxPtr>>, Self::Error>;
fn secret_seals(
&self,
) -> Result<impl Iterator<Item = BlindSeal<TxPtr>>, Self::Error>;
// Provided method
fn contract_schema(
&self,
contract_id: ContractId,
) -> Result<&Schema, ProviderError<Self::Error>> { ... }
}Required Associated Types§
Required Methods§
fn type_system(&self) -> Result<&TypeSystem, Self::Error>
fn lib(&self, id: LibId) -> Result<&Lib, ProviderError<Self::Error>>
fn schemata(&self) -> Result<impl Iterator<Item = &Schema>, Self::Error>
fn schema( &self, schema_id: SchemaId, ) -> Result<&Schema, ProviderError<Self::Error>>
fn geneses(&self) -> Result<impl Iterator<Item = &Genesis>, Self::Error>
fn genesis( &self, contract_id: ContractId, ) -> Result<&Genesis, ProviderError<Self::Error>>
fn witness_ids(&self) -> Result<impl Iterator<Item = Txid>, Self::Error>
fn bundle_ids(&self) -> Result<impl Iterator<Item = BundleId>, Self::Error>
fn bundle( &self, bundle_id: BundleId, ) -> Result<&TransitionBundle, ProviderError<Self::Error>>
fn witness( &self, witness_id: Txid, ) -> Result<&SealWitness, ProviderError<Self::Error>>
fn taprets( &self, ) -> Result<impl Iterator<Item = (Txid, TapretCommitment)>, Self::Error>
fn seal_secret( &self, secret: SecretSeal, ) -> Result<Option<BlindSeal<TxPtr>>, Self::Error>
fn secret_seals( &self, ) -> Result<impl Iterator<Item = BlindSeal<TxPtr>>, Self::Error>
Provided Methods§
fn contract_schema( &self, contract_id: ContractId, ) -> Result<&Schema, ProviderError<Self::Error>>
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.