Struct tinkerforge::red_brick::AsyncFileReadEvent
source · pub struct AsyncFileReadEvent {
pub file_id: u16,
pub error_code: u8,
pub buffer: [u8; 60],
pub length_read: u8,
}
Fields§
§file_id: u16
§error_code: u8
§buffer: [u8; 60]
§length_read: u8
Trait Implementations§
source§impl Clone for AsyncFileReadEvent
impl Clone for AsyncFileReadEvent
source§fn clone(&self) -> AsyncFileReadEvent
fn clone(&self) -> AsyncFileReadEvent
Returns a copy 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 FromByteSlice for AsyncFileReadEvent
impl FromByteSlice for AsyncFileReadEvent
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> AsyncFileReadEvent
fn from_le_byte_slice(bytes: &[u8]) -> AsyncFileReadEvent
Deserialize the implementing type from a byte slice.
impl Copy for AsyncFileReadEvent
Auto Trait Implementations§
impl RefUnwindSafe for AsyncFileReadEvent
impl Send for AsyncFileReadEvent
impl Sync for AsyncFileReadEvent
impl Unpin for AsyncFileReadEvent
impl UnwindSafe for AsyncFileReadEvent
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