Struct fuel_relayer::RelayerHandle
source · pub struct RelayerHandle { /* private fields */ }
Expand description
Handle for interacting with the [Relayer
].
Implementations§
source§impl RelayerHandle
impl RelayerHandle
sourcepub fn start(database: Box<dyn RelayerDb>, config: Config) -> Result<Self>
pub fn start(database: Box<dyn RelayerDb>, config: Config) -> Result<Self>
Start a http [Relayer
] running and return the handle to it.
sourcepub fn listen_synced(&self) -> RelayerSynced
pub fn listen_synced(&self) -> RelayerSynced
Gets a handle to the synced notification
sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the [Relayer
] is still running.