pub struct Server {}Expand description
Web server implementation.
Implementations§
Source§impl Server
impl Server
Sourcepub async fn new() -> Result<Self>
pub async fn new() -> Result<Self>
Create a new server.
Path should be the directory where the backend will store account files; if a server is already running and has a lock on the directory this will block until the lock is released.
Sourcepub async fn start(
&self,
state: ServerState,
backend: ServerBackend,
handle: Handle,
) -> Result<()>
pub async fn start( &self, state: ServerState, backend: ServerBackend, handle: Handle, ) -> Result<()>
Start the server.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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