pub enum Action {
AttemptReconnect,
Exhaust,
Ignore,
}Variants§
AttemptReconnect
Instruct the Tether object to attempt to reconnect to the underlying I/O resource
Exhaust
Instruct the Tether object to not attempt to reconnect to the underlying I/O resource, and instead propegate the error up to the callsite.
Ignore
Ignore the reason for the disconnect, the same I/O instance will be preserved and the it’s waker will be registered with the underlying poll method.
§Warning
Some implementations may panic if they provided an EOF, and are subsequently polled again. Use caution when returning this
Trait Implementations§
Source§impl Ord for Action
impl Ord for Action
Source§impl PartialOrd for Action
impl PartialOrd for Action
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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