Skip to main content

Handle

Trait Handle 

Source
pub trait Handle {
    // Required methods
    fn id(&self) -> Uuid;
    fn cancelled(&self) -> WaitForCancellationFuture<'_> ⓘ;
    fn filter_matchable_change(
        &self,
        candidates: &mut MatchCandidates,
        change: MatchableChange<'_>,
    ) -> bool;
    fn changes_tx(&self) -> Sender<MatchCandidates>;
    fn cleanup(&self) -> impl Future<Output = ()> + Send;
    fn get_counter(&self, table: &str) -> &HandleMetrics;
}

Required Methods§

Source

fn id(&self) -> Uuid

Source

fn cancelled(&self) -> WaitForCancellationFuture<'_> ⓘ

Source

fn filter_matchable_change( &self, candidates: &mut MatchCandidates, change: MatchableChange<'_>, ) -> bool

Source

fn changes_tx(&self) -> Sender<MatchCandidates>

Source

fn cleanup(&self) -> impl Future<Output = ()> + Send

Source

fn get_counter(&self, table: &str) -> &HandleMetrics

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§