Struct network_clique::mock::UnreliableConnectionMaker
source · pub struct UnreliableConnectionMaker {
dialers: UnboundedReceiver<(u32, u32, Sender<UnreliableSplittable>)>,
listeners: Vec<UnboundedSender<UnreliableSplittable>>,
}
Fields§
§dialers: UnboundedReceiver<(u32, u32, Sender<UnreliableSplittable>)>
§listeners: Vec<UnboundedSender<UnreliableSplittable>>
Implementations§
source§impl UnreliableConnectionMaker
impl UnreliableConnectionMaker
pub fn new( ids: Vec<MockPublicKey> ) -> (Self, HashMap<MockPublicKey, (MockDialer, MockListener)>, Addresses)
pub async fn run(&mut self, connections_end_after: Option<usize>)
Auto Trait Implementations§
impl !RefUnwindSafe for UnreliableConnectionMaker
impl Send for UnreliableConnectionMaker
impl Sync for UnreliableConnectionMaker
impl Unpin for UnreliableConnectionMaker
impl !UnwindSafe for UnreliableConnectionMaker
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