pub enum DisconnectedPolicy {
Reject,
WaitForReconnect,
}Expand description
Policy for a message that has not started sending when the session is disconnected or becomes disconnected.
Variants§
Reject
Only accepts the currently connected connection generation; fails the operation if it is not connected or the connection ends.
WaitForReconnect
Allow an unsent message to wait for session reconnection, subject to its cancellation and deadline limits.
Trait Implementations§
Source§impl Clone for DisconnectedPolicy
impl Clone for DisconnectedPolicy
impl Copy for DisconnectedPolicy
Source§impl Debug for DisconnectedPolicy
impl Debug for DisconnectedPolicy
Source§impl Default for DisconnectedPolicy
impl Default for DisconnectedPolicy
impl Eq for DisconnectedPolicy
Source§impl PartialEq for DisconnectedPolicy
impl PartialEq for DisconnectedPolicy
impl StructuralPartialEq for DisconnectedPolicy
Auto Trait Implementations§
impl Freeze for DisconnectedPolicy
impl RefUnwindSafe for DisconnectedPolicy
impl Send for DisconnectedPolicy
impl Sync for DisconnectedPolicy
impl Unpin for DisconnectedPolicy
impl UnsafeUnpin for DisconnectedPolicy
impl UnwindSafe for DisconnectedPolicy
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