mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 19:42:17 +00:00
docs: add documentation to storage-api public types Add doc comments to public structs, enums, and traits in storage-api crate to improve documentation coverage. Refs #741
This commit is contained in:
@@ -14,8 +14,13 @@
|
||||
|
||||
//! Stable storage error contracts shared across storage consumers.
|
||||
|
||||
/// Result type alias for storage operations.
|
||||
pub type StorageResult<T, E = StorageErrorCode> = core::result::Result<T, E>;
|
||||
|
||||
/// Error codes for storage operations.
|
||||
///
|
||||
/// These codes provide a stable, cross-crate error classification
|
||||
/// that can be serialized and transmitted between nodes.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum StorageErrorCode {
|
||||
Io,
|
||||
|
||||
Reference in New Issue
Block a user