[−][src]Struct grin_p2p::DummyAdapter
A no-op network adapter used for testing.
Trait Implementations
impl ChainAdapter for DummyAdapter
[src]
fn total_difficulty(&self) -> Difficulty
[src]
fn total_height(&self) -> u64
[src]
fn get_transaction(&self, _h: Hash) -> Option<Transaction>
[src]
fn tx_kernel_received(&self, _h: Hash, _addr: PeerAddr)
[src]
fn transaction_received(&self, _: Transaction, _stem: bool)
[src]
fn compact_block_received(&self, _cb: CompactBlock, _addr: PeerAddr) -> bool
[src]
fn header_received(&self, _bh: BlockHeader, _addr: PeerAddr) -> bool
[src]
fn block_received(&self, _: Block, _: PeerAddr, _: bool) -> bool
[src]
fn headers_received(&self, _: &[BlockHeader], _: PeerAddr) -> bool
[src]
fn locate_headers(&self, _: &[Hash]) -> Vec<BlockHeader>
[src]
fn get_block(&self, _: Hash) -> Option<Block>
[src]
fn txhashset_read(&self, _h: Hash) -> Option<TxHashSetRead>
[src]
fn txhashset_receive_ready(&self) -> bool
[src]
fn txhashset_write(
&self,
_h: Hash,
_txhashset_data: File,
_peer_addr: PeerAddr
) -> bool
[src]
&self,
_h: Hash,
_txhashset_data: File,
_peer_addr: PeerAddr
) -> bool
fn txhashset_download_update(
&self,
_start_time: DateTime<Utc>,
_downloaded_size: u64,
_total_size: u64
) -> bool
[src]
&self,
_start_time: DateTime<Utc>,
_downloaded_size: u64,
_total_size: u64
) -> bool
impl NetAdapter for DummyAdapter
[src]
fn find_peer_addrs(&self, _: Capabilities) -> Vec<PeerAddr>
[src]
fn peer_addrs_received(&self, _: Vec<PeerAddr>)
[src]
fn peer_difficulty(&self, _: PeerAddr, _: Difficulty, _: u64)
[src]
fn is_banned(&self, _: PeerAddr) -> bool
[src]
Auto Trait Implementations
impl Send for DummyAdapter
impl Sync for DummyAdapter
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> SafeBorrow for T where
T: ?Sized,
T: ?Sized,