Struct network_clique::mock::MockPrelims
source · pub struct MockPrelims<D> {
pub id_incoming: MockPublicKey,
pub pen_incoming: MockSecretKey,
pub id_outgoing: MockPublicKey,
pub pen_outgoing: MockSecretKey,
pub incoming_handle: Pin<Box<dyn Future<Output = Result<(), ProtocolError<MockPublicKey>>>>>,
pub outgoing_handle: Pin<Box<dyn Future<Output = Result<(), ProtocolError<MockPublicKey>>>>>,
pub data_from_incoming: UnboundedReceiver<D>,
pub data_from_outgoing: Option<UnboundedReceiver<D>>,
pub result_from_incoming: UnboundedReceiver<(MockPublicKey, Option<UnboundedSender<D>>)>,
pub result_from_outgoing: UnboundedReceiver<(MockPublicKey, Option<UnboundedSender<D>>)>,
pub authorization_requests: UnboundedReceiver<(MockPublicKey, Sender<bool>)>,
}
Fields§
§id_incoming: MockPublicKey
§pen_incoming: MockSecretKey
§id_outgoing: MockPublicKey
§pen_outgoing: MockSecretKey
§incoming_handle: Pin<Box<dyn Future<Output = Result<(), ProtocolError<MockPublicKey>>>>>
§outgoing_handle: Pin<Box<dyn Future<Output = Result<(), ProtocolError<MockPublicKey>>>>>
§data_from_incoming: UnboundedReceiver<D>
§data_from_outgoing: Option<UnboundedReceiver<D>>
§result_from_incoming: UnboundedReceiver<(MockPublicKey, Option<UnboundedSender<D>>)>
§result_from_outgoing: UnboundedReceiver<(MockPublicKey, Option<UnboundedSender<D>>)>
Auto Trait Implementations§
impl<D> !RefUnwindSafe for MockPrelims<D>
impl<D> !Send for MockPrelims<D>
impl<D> !Sync for MockPrelims<D>
impl<D> Unpin for MockPrelims<D>
impl<D> !UnwindSafe for MockPrelims<D>
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