pub struct ReadSetting<'a> {
pub name: &'a str,
pub max_size: Option<u32>,
}Expand description
Read Setting command
Fields§
§name: &'a strstring of the setting to retrieve
max_size: Option<u32>optional maximum size of data to return
Trait Implementations§
Source§impl<'a> Clone for ReadSetting<'a>
impl<'a> Clone for ReadSetting<'a>
Source§fn clone(&self) -> ReadSetting<'a>
fn clone(&self) -> ReadSetting<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ReadSetting<'a>
impl<'a> Debug for ReadSetting<'a>
Source§impl McuMgrCommand for ReadSetting<'_>
impl McuMgrCommand for ReadSetting<'_>
Source§type Payload = ReadSetting<'_>
type Payload = ReadSetting<'_>
the data payload type
Source§type Response = ReadSettingResponse
type Response = ReadSettingResponse
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> PartialEq for ReadSetting<'a>
impl<'a> PartialEq for ReadSetting<'a>
Source§fn eq(&self, other: &ReadSetting<'a>) -> bool
fn eq(&self, other: &ReadSetting<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ReadSetting<'a>
impl<'a> Serialize for ReadSetting<'a>
impl<'a> Eq for ReadSetting<'a>
impl<'a> StructuralPartialEq for ReadSetting<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReadSetting<'a>
impl<'a> RefUnwindSafe for ReadSetting<'a>
impl<'a> Send for ReadSetting<'a>
impl<'a> Sync for ReadSetting<'a>
impl<'a> Unpin for ReadSetting<'a>
impl<'a> UnsafeUnpin for ReadSetting<'a>
impl<'a> UnwindSafe for ReadSetting<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more