pub struct FakeGetPeerAddr;
Expand description
Implements a fake GetPeerAddr
that just converts the peer_id into a
public Address
based on the given peer_id.
Trait Implementations§
Source§impl GetPeerAddr for FakeGetPeerAddr
impl GetPeerAddr for FakeGetPeerAddr
Source§async fn get_peer_address(
&self,
peer_id: PeerId,
) -> Result<(Address, AddressType)>
async fn get_peer_address( &self, peer_id: PeerId, ) -> Result<(Address, AddressType)>
Resolve peer ID to peer address and address type.
Auto Trait Implementations§
impl Freeze for FakeGetPeerAddr
impl RefUnwindSafe for FakeGetPeerAddr
impl Send for FakeGetPeerAddr
impl Sync for FakeGetPeerAddr
impl Unpin for FakeGetPeerAddr
impl UnwindSafe for FakeGetPeerAddr
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