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
sourceimpl Clone for AsyncFileReadEvent
impl Clone for AsyncFileReadEvent
sourcefn clone(&self) -> AsyncFileReadEvent
fn clone(&self) -> AsyncFileReadEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl FromByteSlice for AsyncFileReadEvent
impl FromByteSlice for AsyncFileReadEvent
sourcefn 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.
sourcefn from_le_bytes(bytes: &[u8]) -> AsyncFileReadEvent
fn from_le_bytes(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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more