Skip to main content

qubit_fs/error/
fs_result.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Filesystem result type alias.
9
10use super::fs_error::FsError;
11
12/// Result type used by filesystem APIs.
13///
14/// # Examples
15///
16/// ```
17/// use qubit_fs::Path;
18/// use qubit_fs::error::FsResult;
19///
20/// fn load_root() -> FsResult<Path> {
21///     Path::parse("/")
22/// }
23/// assert!(load_root().is_ok());
24/// ```
25pub type FsResult<T> = Result<T, FsError>;