pub struct XBusMessage { /* private fields */ }Implementations§
Source§impl XBusMessage
impl XBusMessage
pub fn new_only_header(x_header: u8) -> XBusMessage
pub fn new_single(x_header: u8, db: u8) -> XBusMessage
pub fn new_double(x_header: u8, db0: u8, db1: u8) -> XBusMessage
pub fn new_dbs_vec(x_header: u8, dbs: Vec<u8>) -> XBusMessage
pub fn get_x_header(&self) -> u8
pub fn get_dbs(&self) -> &Vec<u8> ⓘ
pub fn get_xor(&self) -> u8
Trait Implementations§
Source§impl Clone for XBusMessage
impl Clone for XBusMessage
Source§fn clone(&self) -> XBusMessage
fn clone(&self) -> XBusMessage
Returns a duplicate 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 XBusMessage
impl Debug for XBusMessage
Source§impl TryFrom<&[u8]> for XBusMessage
impl TryFrom<&[u8]> for XBusMessage
Source§impl TryFrom<&XBusMessage> for LocoState
impl TryFrom<&XBusMessage> for LocoState
Auto Trait Implementations§
impl Freeze for XBusMessage
impl RefUnwindSafe for XBusMessage
impl Send for XBusMessage
impl Sync for XBusMessage
impl Unpin for XBusMessage
impl UnwindSafe for XBusMessage
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