dart_port 0.0.1

dart_port.rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This is free and unencumbered software released into the public domain.

use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("illegal port ID (port not opened?)")]
    IllegalPort,

    #[error("invalid port ID (port already closed?)")]
    InvalidPort,

    #[error("{0}")]
    Other(String),
}