pub struct Server { /* private fields */ }Expand description
Server structure.
Contains the core configuration and function list of the server.
Implementations§
Source§impl Server
Server implementation containing all server operations.
impl Server
Server implementation containing all server operations.
Sourcepub async fn new() -> Self
pub async fn new() -> Self
Creates a new Server instance with default configuration.
§Returns
Server- New server instance with default settings.
Sourcepub async fn error_handle<F>(&self, func: F) -> &Self
pub async fn error_handle<F>(&self, func: F) -> &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