pub struct ApiServer { /* private fields */ }
Expand description
HTTP server allowing the registration of ApiEndpoint implementations.
Implementations§
source§impl ApiServer
impl ApiServer
sourcepub fn new() -> ApiServer
pub fn new() -> ApiServer
Creates a new ApiServer that will serve ApiEndpoint implementations under the root URL.
Auto Trait Implementations§
impl Freeze for ApiServer
impl !RefUnwindSafe for ApiServer
impl Send for ApiServer
impl Sync for ApiServer
impl Unpin for ApiServer
impl !UnwindSafe for ApiServer
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