pub struct BoundServer {
pub address: SocketAddr,
/* private fields */
}Expand description
An application bound to a port, before it starts serving.
Binding and serving are separate so that a test can bind port 0, read the
port that was chosen and then serve in the background.
Fields§
§address: SocketAddrThe address the server listens on.
Implementations§
Auto Trait Implementations§
impl !Freeze for BoundServer
impl !RefUnwindSafe for BoundServer
impl !UnwindSafe for BoundServer
impl Send for BoundServer
impl Sync for BoundServer
impl Unpin for BoundServer
impl UnsafeUnpin for BoundServer
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