opensensor 0.4.0

A crate for streaming and archiving measurements from sensors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error type for archiving

use aws_sdk_s3::Error;
use redpanda::error::KafkaError;

/// Error for all archiving-related issues
#[derive(thiserror::Error, Debug)]
pub enum ArchiveError {
    /// Wrap archiving-related Kafka errors
    #[error("A Kafka error occurred")]
    KafkaError(KafkaError),
    /// Wrap archiving-related s3 errors
    #[error("A S3 error occurred")]
    S3Error(Error),
}