[][src]Struct mini_slcan::CanFrame

pub struct CanFrame { /* fields omitted */ }

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]

impl Copy for CanFrame[src]

impl Debug for CanFrame[src]

impl Default for CanFrame[src]

impl Deref for CanFrame[src]

type Target = [u8]

The resulting type after dereferencing.

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

impl Send for CanFrame

impl Sync for CanFrame

impl Unpin for CanFrame

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.