pub trait StatementApiClient: ClientT {
// Provided methods
fn dump<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn broadcasts<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn posted<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn posted_clear<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn broadcasts_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn posted_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn posted_clear_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn submit<'life0, 'async_trait>(
&'life0 self,
encoded: Bytes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn remove<'life0, 'async_trait>(
&'life0 self,
statement_hash: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Client implementation for the StatementApi RPC API.
Provided Methods§
Sourcefn dump<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn dump<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return all statements, SCALE-encoded.
Sourcefn broadcasts<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn broadcasts<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return the data of all known statements which include all topics and have no DecryptionKey
field.
To get the statement, and not just the data, use statement_broadcastsStatement.
Sourcefn posted<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn posted<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return the data of all known statements whose decryption key is identified as dest (this
will generally be the public key or a hash thereof for symmetric ciphers, or a hash of the
private key for symmetric ciphers).
To get the statement, and not just the data, use statement_postedStatement.
Sourcefn posted_clear<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn posted_clear<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return the decrypted data of all known statements whose decryption key is identified as
dest. The key must be available to the client.
To get the statement, and not just the data, use statement_postedClearStatement.
Sourcefn broadcasts_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn broadcasts_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return all known statements which include all topics and have no DecryptionKey
field.
This returns the SCALE-encoded statements not just the data as in rpc
statement_broadcasts.
Sourcefn posted_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn posted_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return all known statements whose decryption key is identified as dest (this
will generally be the public key or a hash thereof for symmetric ciphers, or a hash of the
private key for symmetric ciphers).
This returns the SCALE-encoded statements not just the data as in rpc statement_posted.
Sourcefn posted_clear_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn posted_clear_stmt<'life0, 'async_trait>(
&'life0 self,
match_all_topics: Vec<[u8; 32]>,
dest: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Return the statement and the decrypted data of all known statements whose decryption key is
identified as dest. The key must be available to the client.
This returns for each statement: the SCALE-encoded statement concatenated to the decrypted
data. Not just the data as in rpc statement_postedClear.
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.