pub trait SourceSettlementCustody<Host, RootEvent>: Sized {
type Custody: Send;
// Required methods
fn prepare_source(
progress: &mut Option<SourceProgress<Self, Self::Custody>>,
);
fn offer_next_to_source(
custody: &mut Self::Custody,
host: &mut Host,
) -> impl Future<Output = ()> + Send;
fn finish_source(progress: &mut Option<SourceProgress<Self, Self::Custody>>);
}Required Associated Types§
Required Methods§
fn prepare_source(progress: &mut Option<SourceProgress<Self, Self::Custody>>)
fn offer_next_to_source( custody: &mut Self::Custody, host: &mut Host, ) -> impl Future<Output = ()> + Send
fn finish_source(progress: &mut Option<SourceProgress<Self, Self::Custody>>)
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.