bencode-encoder 0.1.2

Bencode encoder for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;
use thiserror::Error;


#[derive(Debug, Error)]
pub enum SerializationError {
    #[error("could not be serialized to json")]
    JsonSerializationError,
    #[error("could not open file")]
    FileError,
    #[error("could not save to .json file")]
    FileSerializationError,
}