Skip to main content

portable_audio_library/
error.rs

1use thiserror::Error;
2
3pub type PortableAudioLibraryResult<T> = std::result::Result<T, PortableAudioLibraryError>;
4
5#[derive(Error, Debug)]
6pub enum PortableAudioLibraryError {
7    #[error("I/O error: {0}")]
8    IoError(#[from] std::io::Error),
9
10    #[error("Bincode error: {0}")]
11    SerdeError(#[from] bincode::Error),
12}