[−][src]Struct grin_p2p::DummyAdapter
A no-op network adapter used for testing.
Trait Implementations
impl ChainAdapter for DummyAdapter
[src]
fn total_difficulty(&self) -> Result<Difficulty, Error>
[src]
fn total_height(&self) -> Result<u64, Error>
[src]
fn get_transaction(&self, _h: Hash) -> Option<Transaction>
[src]
fn tx_kernel_received(
&self,
_h: Hash,
_peer_info: &PeerInfo
) -> Result<bool, Error>
[src]
&self,
_h: Hash,
_peer_info: &PeerInfo
) -> Result<bool, Error>
fn transaction_received(
&self,
_: Transaction,
_stem: bool
) -> Result<bool, Error>
[src]
&self,
_: Transaction,
_stem: bool
) -> Result<bool, Error>
fn compact_block_received(
&self,
_cb: CompactBlock,
_peer_info: &PeerInfo
) -> Result<bool, Error>
[src]
&self,
_cb: CompactBlock,
_peer_info: &PeerInfo
) -> Result<bool, Error>
fn header_received(
&self,
_bh: BlockHeader,
_peer_info: &PeerInfo
) -> Result<bool, Error>
[src]
&self,
_bh: BlockHeader,
_peer_info: &PeerInfo
) -> Result<bool, Error>
fn block_received(&self, _: Block, _: &PeerInfo, _: bool) -> Result<bool, Error>
[src]
fn headers_received(
&self,
_: &[BlockHeader],
_: &PeerInfo
) -> Result<bool, Error>
[src]
&self,
_: &[BlockHeader],
_: &PeerInfo
) -> Result<bool, Error>
fn locate_headers(&self, _: &[Hash]) -> Result<Vec<BlockHeader>, Error>
[src]
fn get_block(&self, _: Hash) -> Option<Block>
[src]
fn kernel_data_read(&self) -> Result<File, Error>
[src]
fn kernel_data_write(&self, _reader: &mut dyn Read) -> Result<bool, Error>
[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_info: &PeerInfo
) -> Result<bool, Error>
[src]
&self,
_h: Hash,
_txhashset_data: File,
_peer_info: &PeerInfo
) -> Result<bool, Error>
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
fn get_tmp_dir(&self) -> PathBuf
[src]
fn get_tmpfile_pathname(&self, _tmpfile_name: String) -> PathBuf
[src]
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 Unpin for DummyAdapter
impl Sync for DummyAdapter
impl UnwindSafe for DummyAdapter
impl RefUnwindSafe for DummyAdapter
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,