pub struct BmsReset;Expand description
Represents a command to reset the BMS.
Implementations§
Source§impl BmsReset
impl BmsReset
Sourcepub fn reply_size() -> usize
pub fn reply_size() -> usize
Expected size of the reply frame for a BMS reset command.
Sourcepub fn decode(rx_buffer: &[u8]) -> Result<(), Error>
pub fn decode(rx_buffer: &[u8]) -> Result<(), Error>
Decodes the response frame for a BMS reset command. This typically just validates the checksum and length.
§Arguments
rx_buffer- The response frame received from the BMS.
§Returns
An empty Result if successful, or an Error if decoding fails.
This is a low-level function. Users might prefer client methods.
Auto Trait Implementations§
impl Freeze for BmsReset
impl RefUnwindSafe for BmsReset
impl Send for BmsReset
impl Sync for BmsReset
impl Unpin for BmsReset
impl UnwindSafe for BmsReset
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