pub struct HttpServerInstance {
pub addr: SocketAddr,
/* private fields */
}Expand description
A running HTTP server instance
Fields§
§addr: SocketAddrSocket address the server is listening on
Implementations§
Source§impl HttpServerInstance
impl HttpServerInstance
Sourcepub fn new(
addr: SocketAddr,
shutdown_handle: Box<dyn Any + Send + Sync>,
) -> Self
pub fn new( addr: SocketAddr, shutdown_handle: Box<dyn Any + Send + Sync>, ) -> Self
Create a new server instance with the given address and shutdown handle
Sourcepub fn get_addr(&self) -> SocketAddr
pub fn get_addr(&self) -> SocketAddr
Get the server’s socket address
Auto Trait Implementations§
impl Freeze for HttpServerInstance
impl !RefUnwindSafe for HttpServerInstance
impl Send for HttpServerInstance
impl Sync for HttpServerInstance
impl Unpin for HttpServerInstance
impl UnsafeUnpin for HttpServerInstance
impl !UnwindSafe for HttpServerInstance
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