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 !RefUnwindSafe for ApiServer
impl !UnwindSafe for ApiServer
impl Freeze for ApiServer
impl Send for ApiServer
impl Sync for ApiServer
impl Unpin for ApiServer
impl UnsafeUnpin 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