kitsune_p2p_fetch 0.1.4

Kitsune P2p Fetch Queue Logic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(missing_docs)]

use thiserror::Error;

use crate::FetchKey;

#[derive(Debug, Error)]
pub enum FetchError {
    #[error("Key not present in the queue: {0:?}")]
    KeyMissing(FetchKey),
}

/// Kitsune Fetch Result
pub type FetchResult<T> = Result<T, FetchError>;