Skip to main content

HintSource

Trait HintSource 

Source
pub trait HintSource {
    type Error;

    // Required method
    fn next_hint(&mut self) -> Result<Option<(TxId, Hint)>, Self::Error>;
}
Expand description

The host’s callbacks, SSE listener, polls or other hint inputs.

Required Associated Types§

Source

type Error

The source’s own error type.

Required Methods§

Source

fn next_hint(&mut self) -> Result<Option<(TxId, Hint)>, Self::Error>

Supply the next named observation, or none. The tracker owns no loop.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§