pub trait GrantFlood:
Send
+ Sync
+ 'static {
// Required method
fn flood<'life0, 'life1, 'async_trait>(
&'life0 self,
grant: &'life1 SignedGrant,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Spreads a new grant to the mesh. Phase 1b replaces the implementation with
the mesh.cog.grant flood and sync; the relay only calls this.
Required Methods§
Sourcefn flood<'life0, 'life1, 'async_trait>(
&'life0 self,
grant: &'life1 SignedGrant,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn flood<'life0, 'life1, 'async_trait>(
&'life0 self,
grant: &'life1 SignedGrant,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Flood grant to the admitted peers. Best effort: the requester also
gets the grant in its reply, and sync catches the rest up.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl GrantFlood for LicenceExchange
The steward relay floods the grants it obtains through the exchange (ADR-106 phase 1b over the 1c relay): same topic, budgets and admission as any other grant flood.