We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Other
1 parent 402f1cf commit 6a6ad3fCopy full SHA for 6a6ad3f
src/can/mod.rs
@@ -87,6 +87,9 @@ pub enum ErrorKind {
87
/// An ACK error shall be detected by a transmitter whenever it does not
88
/// monitor a dominant bit during the ACK slot.
89
Ack,
90
+
91
+ /// A different error occurred. The original error may contain more information.
92
+ Other,
93
}
94
95
impl Error for ErrorKind {
@@ -110,6 +113,10 @@ impl core::fmt::Display for ErrorKind {
110
113
"A fixed-form bit field contains one or more illegal bits"
111
114
),
112
115
Self::Ack => write!(f, "Transmitted frame was not acknowledged"),
116
+ Self::Other => write!(
117
+ f,
118
+ "A different error occurred. The original error may contain more information"
119
+ ),
120
121
122
0 commit comments