pub struct Protocol { /* private fields */ }Expand description
Communication protocol implementation
Implementations§
Source§impl Protocol
impl Protocol
pub fn new() -> Self
pub fn set_retries_and_timeout( &mut self, send_retries: u32, read_retries: u32, timeout: Duration, )
Sourcepub fn calculate_checksum(data: &[u8]) -> u8
pub fn calculate_checksum(data: &[u8]) -> u8
Calculate checksum for protocol data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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