Clarify poll_message docs

Closes #975
This commit is contained in:
Steven Fackler 2023-01-01 20:33:06 -05:00
parent 8ab8f1a555
commit 0c056148d0
No known key found for this signature in database
GPG Key ID: 408917B7276A5226

View File

@ -302,6 +302,9 @@ where
///
/// The server can send notices as well as notifications asynchronously to the client. Applications that wish to
/// examine those messages should use this method to drive the connection rather than its `Future` implementation.
///
/// Return values of `None` or `Some(Err(_))` are "terminal"; callers should not invoke this method again after
/// receiving one of those values.
pub fn poll_message(
&mut self,
cx: &mut Context<'_>,