pub struct Server { /* private fields */ }
Implementations§
Source§impl Server
impl Server
pub fn new() -> Self
pub async fn host<T>(&mut self, host: T) -> &mut Self
pub async fn port(&mut self, port: usize) -> &mut Self
pub async fn buffer(&mut self, buffer_size: usize) -> &mut Self
pub async fn error_handle<F>(&self, func: F) -> &Self
pub async fn func<F, Fut>(&mut self, func: F) -> &mut Self
pub async fn run(&mut self) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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