pub struct NuttServer { /* private fields */ }Implementations§
Source§impl NuttServer
impl NuttServer
pub fn new() -> Self
pub fn routes(self, routes: Vec<Route>) -> Self
pub fn bind_dev(self, address: (&str, u16)) -> Self
pub fn bind_release(self, address: (&str, u16)) -> Self
pub fn state<T: Sync + Send + 'static + for<'a> Deserialize<'a>>( self, state: (String, State<T>), ) -> Self
pub fn session(self, session_type: SessionType) -> Self
pub async fn run(self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NuttServer
impl RefUnwindSafe for NuttServer
impl Send for NuttServer
impl Sync for NuttServer
impl Unpin for NuttServer
impl UnwindSafe for NuttServer
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