Struct crystalorb_mock_network::MockConnection [−][src]
pub struct MockConnection {
pub channels: HashMap<TypeId, Box<dyn DelayedChannel>>,
pub is_connected: Rc<Cell<bool>>,
}
Fields
channels: HashMap<TypeId, Box<dyn DelayedChannel>>
is_connected: Rc<Cell<bool>>
Implementations
pub fn register_channel<T: 'static>(
connection_1: &mut MockConnection,
connection_2: &mut MockConnection
)
Auto Trait Implementations
impl !RefUnwindSafe for MockConnection
impl !Send for MockConnection
impl !Sync for MockConnection
impl Unpin for MockConnection
impl !UnwindSafe for MockConnection
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more