pub struct Protocol1BrickletName {
pub protocol_version: u8,
pub firmware_version: [u8; 3],
pub name: String,
}
Fields§
§protocol_version: u8
§firmware_version: [u8; 3]
§name: String
Trait Implementations§
Source§impl Clone for Protocol1BrickletName
impl Clone for Protocol1BrickletName
Source§fn clone(&self) -> Protocol1BrickletName
fn clone(&self) -> Protocol1BrickletName
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 Protocol1BrickletName
impl FromByteSlice for Protocol1BrickletName
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]) -> Protocol1BrickletName
fn from_le_byte_slice(bytes: &[u8]) -> Protocol1BrickletName
Deserialize the implementing type from a byte slice.
Auto Trait Implementations§
impl Freeze for Protocol1BrickletName
impl RefUnwindSafe for Protocol1BrickletName
impl Send for Protocol1BrickletName
impl Sync for Protocol1BrickletName
impl Unpin for Protocol1BrickletName
impl UnwindSafe for Protocol1BrickletName
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