Rust referencezer0-proto-mp
zer0-proto-mp · error
Source declarations, signatures and documentation for error.
Source: sigil/weave/libs/zer0-proto-mp/src/error.rs. SHA-256: 4ed6be17c0ba1de6cbb89c6571b12161327909cd625152e07cbcc3890c1b5e31.
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::WeaveMuxError
Protocol multiplexing errors
#[derive(Debug, Error)]
pub enum WeaveMuxError {
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Channel {0} not found")]
ChannelNotFound(u32),
#[error("Channel not ready for communication")]
ChannelNotReady,
#[error("Channel closed")]
ChannelClosed,
#[error("Maximum channels exceeded: {0}")]
MaxChannelsExceeded(usize),
#[error("Frame too large: {size} bytes (max: {max})")]
FrameTooLarge { size: usize, max: usize },
#[error("Invalid message type: {0}")]
InvalidMessageType(u8),
#[error("Protocol mismatch: expected {expected}, got {actual}")]
ProtocolMismatch { expected: String, actual: String },
#[error("Handshake failed: {0}")]
HandshakeFailed(String),
#[error("Invalid frame format")]
InvalidFrame,
#[error("Buffer overflow")]
BufferOverflow,
#[error("Timeout")]
Timeout,
#[error("Shutdown")]
Shutdown,
#[error("Invalid message ID: {0}")]
InvalidMessageId(u32),
#[error("Serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("Not implemented: {0}")]
NotImplemented(&'static str),
}Source line: 7.
error::Result
Result type for multiplexer operations
pub type Result<T> = std::result::Result<T, WeaveMuxError>;Source line: 58.