pub struct Hyperap<D>where
D: HyperapCore + 'static,{ /* private fields */ }
Implementations§
Source§impl<D> Hyperap<D>where
D: HyperapCore + 'static,
impl<D> Hyperap<D>where
D: HyperapCore + 'static,
pub fn new(d: D) -> Hyperap<D>
pub fn add_route<F, S: Into<String>>( &mut self, method: Method, path: S, func: F, definition: D::R, ) -> &mut Self
pub fn add_pure_route<F, S: Into<String>>( &mut self, method: Method, path: S, func: F, ) -> &mut Self
pub fn production(&mut self) -> &mut Self
pub fn open_browser(&mut self, b: bool) -> &mut Self
pub fn port(&mut self, port: u16) -> &mut Self
pub fn run(self)
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Hyperap<D>where
D: Freeze,
impl<D> !RefUnwindSafe for Hyperap<D>
impl<D> !Send for Hyperap<D>
impl<D> !Sync for Hyperap<D>
impl<D> Unpin for Hyperap<D>where
D: Unpin,
impl<D> !UnwindSafe for Hyperap<D>
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