You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
421 B
19 lines
421 B
use chan_signal::Signal;
|
|
|
|
error_chain!{
|
|
types {
|
|
Error, ErrorKind, ResultExt, Result;
|
|
}
|
|
|
|
errors {
|
|
Connection(msg: String) {
|
|
description("Connection error")
|
|
display("Connection error: {}", msg)
|
|
}
|
|
|
|
Interrupt(signal: Signal) {
|
|
description("Interruption by external signal")
|
|
display("Iterrupted by SIG{:?}", signal)
|
|
}
|
|
}
|
|
}
|
|
|