pub struct Fixed {
pub names: Vec<(String, Vec<IpAddr>)>,
pub ports: Vec<(SocketAddr, Port)>,
}Expand description
A network with fixed answers, for tests: the names resolve to their addresses, others not at all; the ports have their states, others are filtered.
Fields§
§names: Vec<(String, Vec<IpAddr>)>§ports: Vec<(SocketAddr, Port)>Trait Implementations§
Auto Trait Implementations§
impl Forget for Fixed
impl Freeze for Fixed
impl Move for Fixed
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnsafeUnpin for Fixed
impl UnwindSafe for Fixed
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