Struct lumina_node::syncer::Syncer
source · pub struct Syncer<S>where
S: Store + 'static,{ /* private fields */ }Expand description
Component responsible for synchronizing block headers from the network.
Implementations§
source§impl<S> Syncer<S>where
S: Store,
impl<S> Syncer<S>where
S: Store,
sourcepub fn start(args: SyncerArgs<S>) -> Result<Self, SyncerError>
pub fn start(args: SyncerArgs<S>) -> Result<Self, SyncerError>
Create and start the Syncer.
sourcepub async fn info(&self) -> Result<SyncingInfo, SyncerError>
pub async fn info(&self) -> Result<SyncingInfo, SyncerError>
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Syncer<S>
impl<S> Send for Syncer<S>
impl<S> Sync for Syncer<S>
impl<S> Unpin for Syncer<S>where
S: Unpin,
impl<S> !UnwindSafe for Syncer<S>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more