Result

Type Alias Result 

Source
pub type Result<T> = Result<T, ClaudeCodeError>;
Expand description

Convenient type alias for Results using ClaudeCodeError.

This type alias simplifies function signatures throughout the codebase by providing a default error type for all operations.

§Examples

use claude_code_toolkit::Result;

fn may_fail() -> Result<String> {
    Ok("success".to_string())
}

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(ClaudeCodeError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ClaudeCodeError)

Contains the error value