pub enum GossipSync<P: Deref<Target = P2PGossipSync<G, A, L>>, R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, A: Deref, L: Deref> where
    A::Target: Access,
    L::Target: Logger
{ P2P(P), Rapid(R), None, }
Expand description

Variants

P2P(P)

Gossip sync via the lightning peer-to-peer network as defined by BOLT 7.

Rapid(R)

Rapid gossip sync from a trusted server.

None

No gossip sync.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.