pub type Result<T> = Result<T, Error>;
Expand description
Standard result type for file system operations.
This is a convenience alias for Result<T, Error>
used throughout the file system crate.
All file system operations that can fail return this type.
§Examples
use file_system::{Result, Error};
fn example_operation() -> Result<String> {
Ok("Success".into())
}
fn failing_operation() -> Result<()> {
Err(Error::Permission_denied)
}
Aliased Type§
pub enum Result<T> {
Ok(T),
Err(Error),
}