Rust referenceweave-sdk
weave-sdk · error
Source declarations, signatures and documentation for error.
Source: sigil/weave/libs/weave-sdk/src/error.rs. SHA-256: 1d75a5a22db38900c01c85f0657f055ef53e20761f2fa480735ceda477c2625e.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
error::WeaveError
Unified SDK error type wrapping errors from all Weave subsystems.
#[derive(Debug, Error)]
pub enum WeaveError {
#[error("strand error: {0}")]
Strand(#[from] strand_errors::StrandError),
#[error("identity error: {0}")]
Identity(String),
#[error("network error: {0}")]
Network(String),
#[error("storage error: {0}")]
Storage(String),
#[error("replication error: {0}")]
Replication(String),
#[error("config error: {0}")]
Config(String),
#[error("DHT error: {0}")]
Dht(String),
#[error("crypto error: {0}")]
Crypto(String),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("serialization error: {0}")]
Serialization(String),
#[error("unauthorized: {0}")]
Unauthorized(String),
#[error("unsupported: {0}")]
Unsupported(String),
#[error("{0}")]
Other(#[from] anyhow::Error),
}Source line: 5.
error::Result
pub type Result<T> = std::result::Result<T, WeaveError>;Source line: 46.