Struct tinkerforge::red_brick::StringChunk
source · pub struct StringChunk {
pub error_code: u8,
pub buffer: String,
}
Fields§
§error_code: u8
§buffer: String
Trait Implementations§
source§impl Clone for StringChunk
impl Clone for StringChunk
source§fn clone(&self) -> StringChunk
fn clone(&self) -> StringChunk
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 StringChunk
impl FromByteSlice for StringChunk
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]) -> StringChunk
fn from_le_byte_slice(bytes: &[u8]) -> StringChunk
Deserialize the implementing type from a byte slice.
Auto Trait Implementations§
impl RefUnwindSafe for StringChunk
impl Send for StringChunk
impl Sync for StringChunk
impl Unpin for StringChunk
impl UnwindSafe for StringChunk
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