Struct dynamixel2::InvalidHeaderPrefix
source · pub struct InvalidHeaderPrefix {
pub actual: [u8; 4],
pub expected: [u8; 4],
}
Expand description
The received message has an invalid header prefix.
Fields§
§actual: [u8; 4]
The actual prefix.
expected: [u8; 4]
The expected prefix.
Implementations§
Trait Implementations§
source§impl Clone for InvalidHeaderPrefix
impl Clone for InvalidHeaderPrefix
source§fn clone(&self) -> InvalidHeaderPrefix
fn clone(&self) -> InvalidHeaderPrefix
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidHeaderPrefix
impl Debug for InvalidHeaderPrefix
source§impl Display for InvalidHeaderPrefix
impl Display for InvalidHeaderPrefix
source§impl Error for InvalidHeaderPrefix
impl Error for InvalidHeaderPrefix
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()
source§impl From<InvalidHeaderPrefix> for InvalidMessage
impl From<InvalidHeaderPrefix> for InvalidMessage
source§fn from(other: InvalidHeaderPrefix) -> Self
fn from(other: InvalidHeaderPrefix) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderPrefix> for ReadError
impl From<InvalidHeaderPrefix> for ReadError
source§fn from(other: InvalidHeaderPrefix) -> Self
fn from(other: InvalidHeaderPrefix) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderPrefix> for TransferError
impl From<InvalidHeaderPrefix> for TransferError
source§fn from(other: InvalidHeaderPrefix) -> Self
fn from(other: InvalidHeaderPrefix) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidHeaderPrefix
impl PartialEq for InvalidHeaderPrefix
impl Eq for InvalidHeaderPrefix
impl StructuralPartialEq for InvalidHeaderPrefix
Auto Trait Implementations§
impl Freeze for InvalidHeaderPrefix
impl RefUnwindSafe for InvalidHeaderPrefix
impl Send for InvalidHeaderPrefix
impl Sync for InvalidHeaderPrefix
impl Unpin for InvalidHeaderPrefix
impl UnwindSafe for InvalidHeaderPrefix
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)