pub struct PendingLogout { /* private fields */ }Expand description
One reserved terminal operation. Reservation stops account admission without sending anything. An embedding daemon can commit local logout inhibition before consuming this token to submit its optional remote logout. Dropping the token leaves the account stopped and sends no request.
Implementations§
Source§impl PendingLogout
impl PendingLogout
Sourcepub async fn submit(self) -> Result<LogoutReply>
pub async fn submit(self) -> Result<LogoutReply>
Wait for requests admitted before the reservation, then submit the logout once on Tokio’s blocking pool.
Sourcepub async fn submit_guarded<F>(self, before_submit: F) -> Result<LogoutReply>
pub async fn submit_guarded<F>(self, before_submit: F) -> Result<LogoutReply>
Recheck the embedding application’s committed logout operation immediately before business handoff. This token is consumed even on failure; neither a cancelled waiter nor an uncertain response permits automatic resubmission.
Sourcepub fn submit_blocking(self) -> Result<LogoutReply>
pub fn submit_blocking(self) -> Result<LogoutReply>
As Self::submit, on the caller’s blocking worker. No Tokio runtime is
needed. Do not call it on an async executor thread or from inside an
account request: it waits for every earlier request to finish.
Sourcepub fn submit_guarded_blocking<F>(self, before_submit: F) -> Result<LogoutReply>
pub fn submit_guarded_blocking<F>(self, before_submit: F) -> Result<LogoutReply>
As Self::submit_guarded, on the caller’s blocking worker. The token
is consumed even on failure, and an uncertain response never permits
automatic resubmission.