Enum primitives::Validator
source · pub enum Validator<T> {
Leader(T),
Follower(T),
}
Variants
Leader(T)
Follower(T)
Implementations
sourceimpl<T> Validator<T>
impl<T> Validator<T>
pub fn into_inner(self) -> T
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<Validator<T>> for Validator<T>
impl<T: PartialEq> PartialEq<Validator<T>> for Validator<T>
impl<T: Eq> Eq for Validator<T>
impl<T> StructuralEq for Validator<T>
impl<T> StructuralPartialEq for Validator<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Validator<T>where
T: RefUnwindSafe,
impl<T> Send for Validator<T>where
T: Send,
impl<T> Sync for Validator<T>where
T: Sync,
impl<T> Unpin for Validator<T>where
T: Unpin,
impl<T> UnwindSafe for Validator<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more