pub struct Server<F, U = ()>{ /* private fields */ }Implementations§
Source§impl<F, U> Server<F, U>
impl<F, U> Server<F, U>
pub fn new(config: ValidatedServerConfig<U>, services: F) -> Self
pub fn bind(self) -> Result<BoundServer, ServerError>
pub async fn start(self) -> Result<(), ServerError>
Auto Trait Implementations§
impl<F, U> Freeze for Server<F, U>
impl<F, U> RefUnwindSafe for Server<F, U>where
F: RefUnwindSafe,
U: RefUnwindSafe,
impl<F, U> Send for Server<F, U>
impl<F, U> Sync for Server<F, U>
impl<F, U> Unpin for Server<F, U>
impl<F, U> UnsafeUnpin for Server<F, U>where
F: UnsafeUnpin,
U: UnsafeUnpin,
impl<F, U> UnwindSafe for Server<F, U>where
F: UnwindSafe,
U: UnwindSafe,
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