Struct HttpServer
pub struct HttpServer { /* private fields */ }Expand description
A running API server.
Implementations§
§impl HttpServer
impl HttpServer
pub fn addr(&self) -> SocketAddr
pub fn stop(self)
pub fn stop(self)
Stops serving.
pub fn reload(&self, opts: HttpOptions) -> Result<()>
pub fn reload(&self, opts: HttpOptions) -> Result<()>
Replaces the tokens, namespaces and codec URL (on SIGHUP): new
connections use them; open event streams keep theirs. The address
and the UI do not change.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpServer
impl RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl UnsafeUnpin for HttpServer
impl UnwindSafe for HttpServer
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