pub enum PartError {
WrongAddress {
asked: u8,
answers: u8,
},
NoRegister,
NoReply,
}Expand description
What a simulated part refuses.
Variants§
WrongAddress
A transfer was addressed to something else on the bus.
NoRegister
A transfer asked for a register before saying which one.
NoReply
A read reached a part that takes commands when no command had left it a reply, which a real part answers by not acknowledging.
Trait Implementations§
impl Copy for PartError
impl Eq for PartError
Source§impl Error for PartError
impl Error for PartError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for PartError
Auto Trait Implementations§
impl Freeze for PartError
impl RefUnwindSafe for PartError
impl Send for PartError
impl Sync for PartError
impl Unpin for PartError
impl UnsafeUnpin for PartError
impl UnwindSafe for PartError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more