pub struct WriteSetting<'a, 'b> {
pub name: &'a str,
pub val: &'b [u8],
}Expand description
Write Setting command
Fields§
§name: &'a strstring of the setting to update/set
val: &'b [u8]value to set the setting to
Trait Implementations§
Source§impl<'a, 'b> Clone for WriteSetting<'a, 'b>
impl<'a, 'b> Clone for WriteSetting<'a, 'b>
Source§fn clone(&self) -> WriteSetting<'a, 'b>
fn clone(&self) -> WriteSetting<'a, 'b>
Returns a duplicate 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<'a, 'b> Debug for WriteSetting<'a, 'b>
impl<'a, 'b> Debug for WriteSetting<'a, 'b>
Source§impl McuMgrCommand for WriteSetting<'_, '_>
impl McuMgrCommand for WriteSetting<'_, '_>
Source§type Payload = WriteSetting<'_, '_>
type Payload = WriteSetting<'_, '_>
the data payload type
Source§type Response = WriteSettingResponse
type Response = WriteSettingResponse
the response type of the command
Source§fn is_write_operation(&self) -> bool
fn is_write_operation(&self) -> bool
whether this command is a read or write operation
Source§fn command_id(&self) -> u8
fn command_id(&self) -> u8
the command ID
Source§impl<'a, 'b> PartialEq for WriteSetting<'a, 'b>
impl<'a, 'b> PartialEq for WriteSetting<'a, 'b>
Source§impl<'a, 'b> Serialize for WriteSetting<'a, 'b>
impl<'a, 'b> Serialize for WriteSetting<'a, 'b>
impl<'a, 'b> Eq for WriteSetting<'a, 'b>
impl<'a, 'b> StructuralPartialEq for WriteSetting<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for WriteSetting<'a, 'b>
impl<'a, 'b> RefUnwindSafe for WriteSetting<'a, 'b>
impl<'a, 'b> Send for WriteSetting<'a, 'b>
impl<'a, 'b> Sync for WriteSetting<'a, 'b>
impl<'a, 'b> Unpin for WriteSetting<'a, 'b>
impl<'a, 'b> UnsafeUnpin for WriteSetting<'a, 'b>
impl<'a, 'b> UnwindSafe for WriteSetting<'a, 'b>
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