Struct fuel_core::service::adapters::P2PAdapter
source · pub struct P2PAdapter;
Implementations§
source§impl P2PAdapter
impl P2PAdapter
Trait Implementations§
source§impl Clone for P2PAdapter
impl Clone for P2PAdapter
source§fn clone(&self) -> P2PAdapter
fn clone(&self) -> P2PAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for P2PAdapter
impl Default for P2PAdapter
source§fn default() -> P2PAdapter
fn default() -> P2PAdapter
Returns the “default value” for a type. Read more
source§impl PeerToPeer for P2PAdapter
impl PeerToPeer for P2PAdapter
type GossipedTransaction = GossipData<Transaction>
fn broadcast_transaction(&self, _transaction: Arc<Transaction>) -> Result<()>
source§fn gossiped_transaction_events(&self) -> BoxStream<Self::GossipedTransaction>
fn gossiped_transaction_events(&self) -> BoxStream<Self::GossipedTransaction>
Creates a stream of next transactions gossiped from the network.
fn notify_gossip_transaction_validity( &self, _message_info: GossipsubMessageInfo, _validity: GossipsubMessageAcceptance ) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for P2PAdapter
impl Send for P2PAdapter
impl Sync for P2PAdapter
impl Unpin for P2PAdapter
impl UnwindSafe for P2PAdapter
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