pub enum OrphanPolicy {
DropBoth,
KeepFirst,
KeepSecond,
}Expand description
How to handle orphan reads where one mate passes and the other doesn’t.
Variants§
DropBoth
Drop both reads if either fails.
KeepFirst
Keep R1 if it passes, even if R2 fails.
KeepSecond
Keep R2 if it passes, even if R1 fails.
Trait Implementations§
Source§impl Clone for OrphanPolicy
impl Clone for OrphanPolicy
Source§fn clone(&self) -> OrphanPolicy
fn clone(&self) -> OrphanPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrphanPolicy
impl Debug for OrphanPolicy
Source§impl PartialEq for OrphanPolicy
impl PartialEq for OrphanPolicy
impl Copy for OrphanPolicy
impl Eq for OrphanPolicy
impl StructuralPartialEq for OrphanPolicy
Auto Trait Implementations§
impl Freeze for OrphanPolicy
impl RefUnwindSafe for OrphanPolicy
impl Send for OrphanPolicy
impl Sync for OrphanPolicy
impl Unpin for OrphanPolicy
impl UnsafeUnpin for OrphanPolicy
impl UnwindSafe for OrphanPolicy
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