#[non_exhaustive]pub enum VersionResolutionStrategy {
Strict,
Closest,
Latest,
}Expand description
Controls how the dynamic client resolves a detected NiFi server version to a supported client version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Strict
Require an exact major.minor match; return NifiError::UnsupportedVersion otherwise.
Closest
Use the supported version with the nearest minor version within the same major. Ties go to the lower version.
Latest
Use the highest supported minor version within the same major.
Trait Implementations§
Source§impl Clone for VersionResolutionStrategy
impl Clone for VersionResolutionStrategy
Source§fn clone(&self) -> VersionResolutionStrategy
fn clone(&self) -> VersionResolutionStrategy
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 VersionResolutionStrategy
impl Debug for VersionResolutionStrategy
Source§impl Default for VersionResolutionStrategy
impl Default for VersionResolutionStrategy
Source§fn default() -> VersionResolutionStrategy
fn default() -> VersionResolutionStrategy
Returns the “default value” for a type. Read more
impl Copy for VersionResolutionStrategy
impl Eq for VersionResolutionStrategy
impl StructuralPartialEq for VersionResolutionStrategy
Auto Trait Implementations§
impl Freeze for VersionResolutionStrategy
impl RefUnwindSafe for VersionResolutionStrategy
impl Send for VersionResolutionStrategy
impl Sync for VersionResolutionStrategy
impl Unpin for VersionResolutionStrategy
impl UnsafeUnpin for VersionResolutionStrategy
impl UnwindSafe for VersionResolutionStrategy
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