pub struct VersionHintResolver;Expand description
Version hint resolution engine
Implementations§
Source§impl VersionHintResolver
impl VersionHintResolver
Sourcepub async fn resolve(
user_version: Option<String>,
sstable_path: &Path,
platform: Arc<Platform>,
) -> Result<ResolvedVersion>
pub async fn resolve( user_version: Option<String>, sstable_path: &Path, platform: Arc<Platform>, ) -> Result<ResolvedVersion>
Resolve version using the precedence chain
§Arguments
user_version- User-provided version flag (highest priority)sstable_path- Path to SSTable directory or Data.db fileplatform- Platform abstraction for file I/O
§Returns
Returns a ResolvedVersion with the version string and source.
If no version can be determined, returns Unknown source with None version.
§Errors
Returns an error only for fatal I/O errors (not for missing metadata files). Missing metadata.yml is not an error - it simply moves to the next precedence level.
Auto Trait Implementations§
impl Freeze for VersionHintResolver
impl RefUnwindSafe for VersionHintResolver
impl Send for VersionHintResolver
impl Sync for VersionHintResolver
impl Unpin for VersionHintResolver
impl UnsafeUnpin for VersionHintResolver
impl UnwindSafe for VersionHintResolver
Blanket Implementations§
impl<T> Allocation for T
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