Struct warg_server::Server
source · pub struct Server { /* private fields */ }Expand description
Represents the warg registry server.
Implementations§
source§impl Server
impl Server
sourcepub async fn run(self) -> Result<()>
pub async fn run(self) -> Result<()>
Initializes the server and starts serving.
Equivalent to calling Server::initialize followed by
InitializedServer::serve.
sourcepub async fn initialize(self) -> Result<InitializedServer>
pub async fn initialize(self) -> Result<InitializedServer>
Initializes the server’s internal state, background task(s), and
listening socket, returning an InitializedServer. To actually begin
serving, call InitializedServer::serve.
Useful for tests that need full initialization before running.
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§
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