Skip to content

Commit

Permalink
add docs on LocalServerTask
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Sep 17, 2023
1 parent f36b48e commit d221008
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/local_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ where
}
}

/// A task that initializes the connection and run the server until the server
/// and the task is dropped.
///
/// This must be awaited as soon as possible after creating the server.
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct LocalServerTask {
inner: Option<Pin<Box<dyn Future<Output = Result<()>>>>>,
Expand Down

0 comments on commit d221008

Please sign in to comment.