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
Either P2PGossipSync
or RapidGossipSync
.
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
impl<P, R, G, A, L> RefUnwindSafe for GossipSync<P, R, G, A, L> where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R, G, A, L> Send for GossipSync<P, R, G, A, L> where
P: Send,
R: Send,
impl<P, R, G, A, L> Sync for GossipSync<P, R, G, A, L> where
P: Sync,
R: Sync,
impl<P, R, G, A, L> Unpin for GossipSync<P, R, G, A, L> where
P: Unpin,
R: Unpin,
impl<P, R, G, A, L> UnwindSafe for GossipSync<P, R, G, A, L> where
P: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more