pub struct GossipSession { /* private fields */ }Expand description
An active, lossy gossip subscription that can announce and act on sync hints.
Implementations§
Source§impl GossipSession
impl GossipSession
Sourcepub async fn announce(&self) -> Result<GossipHint, DbError>
pub async fn announce(&self) -> Result<GossipHint, DbError>
Broadcasts a signed hash-only hint for the current commit frontier.
Sourcepub async fn sync_next(&mut self) -> Result<SyncReport, DbError>
pub async fn sync_next(&mut self) -> Result<SyncReport, DbError>
Waits for a valid hint and runs ordinary authenticated reconciliation with its provider.
Auto Trait Implementations§
impl Freeze for GossipSession
impl !RefUnwindSafe for GossipSession
impl Send for GossipSession
impl Sync for GossipSession
impl Unpin for GossipSession
impl !UnwindSafe for GossipSession
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more