Struct ntex_server::net::TestServer
source · pub struct TestServer { /* private fields */ }
Expand description
Test server controller
Implementations§
source§impl TestServer
impl TestServer
sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Test server socket addr
pub fn set_addr(self, addr: SocketAddr) -> Self
sourcepub fn unused_addr() -> SocketAddr
pub fn unused_addr() -> SocketAddr
Get first available unused address
Trait Implementations§
source§impl Debug for TestServer
impl Debug for TestServer
Auto Trait Implementations§
impl Freeze for TestServer
impl !RefUnwindSafe for TestServer
impl Send for TestServer
impl !Sync for TestServer
impl Unpin for TestServer
impl !UnwindSafe for TestServer
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