[−][src]Struct burner::Server
Implementations
impl Server
[src]
pub fn new() -> Self
[src]
pub fn set_thread_pool_size(&mut self, size: usize)
[src]
pub fn handle_connection(&self, stream: TcpStream)
[src]
pub fn listen(self, port: i32)
[src]
Trait Implementations
impl RouterService for Server
[src]
fn get(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn post(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn put(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn delete(&mut self, path: &str, f: Controller) -> &mut Self
[src]
fn middleware(
&mut self,
path: &str,
f: Box<dyn Fn(&Request, &Response) + Send + Sync + 'static>
) -> &mut Self
[src]
&mut self,
path: &str,
f: Box<dyn Fn(&Request, &Response) + Send + Sync + 'static>
) -> &mut Self
fn mount(&mut self, relative_path: &str, router: Router) -> &mut Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,