[−][src]Struct mini_slcan::CanFrame
Implementations
impl CanFrame[src]
pub const MAX_LENGTH: usize[src]
pub const fn new() -> Self[src]
pub fn len(&self) -> usize[src]
pub fn data(&self) -> &[u8][src]
pub fn data_mut(&mut self) -> &mut [u8][src]
pub fn push(&mut self, byte: u8) -> Result<(), Error>[src]
Appends a byte to this CAN frame.
Returns an error when the frame is already full.
Trait Implementations
impl Clone for CanFrame[src]
fn clone(&self) -> CanFrame[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CanFrame[src]
impl Debug for CanFrame[src]
impl Default for CanFrame[src]
impl Deref for CanFrame[src]
impl DerefMut for CanFrame[src]
impl Eq for CanFrame[src]
impl Format for CanFrame[src]
impl From<[u8; 0]> for CanFrame[src]
impl From<[u8; 1]> for CanFrame[src]
impl From<[u8; 2]> for CanFrame[src]
impl From<[u8; 3]> for CanFrame[src]
impl From<[u8; 4]> for CanFrame[src]
impl From<[u8; 5]> for CanFrame[src]
impl From<[u8; 6]> for CanFrame[src]
impl From<[u8; 7]> for CanFrame[src]
impl From<[u8; 8]> for CanFrame[src]
impl PartialEq<CanFrame> for CanFrame[src]
impl StructuralEq for CanFrame[src]
impl StructuralPartialEq for CanFrame[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,