pub struct Properties(pub u8);Expand description
Characteristic properties (the declaration’s bit field).
Tuple Fields§
§0: u8Implementations§
Source§impl Properties
impl Properties
Sourcepub const WRITE_WITHOUT_RESPONSE: u8 = 0x04
pub const WRITE_WITHOUT_RESPONSE: u8 = 0x04
Write Without Response.
Sourcepub const SIGNED_WRITE: u8 = 0x40
pub const SIGNED_WRITE: u8 = 0x40
Authenticated Signed Writes.
Sourcepub fn from_names<S: AsRef<str>>(names: &[S]) -> Result<Properties, String>
pub fn from_names<S: AsRef<str>>(names: &[S]) -> Result<Properties, String>
From property names (as Properties::names gives them).
Trait Implementations§
Source§impl Clone for Properties
impl Clone for Properties
impl Copy for Properties
Source§impl Debug for Properties
impl Debug for Properties
Source§impl Default for Properties
impl Default for Properties
Source§impl<'de> Deserialize<'de> for Properties
impl<'de> Deserialize<'de> for Properties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Properties
Source§impl PartialEq for Properties
impl PartialEq for Properties
Source§impl Serialize for Properties
impl Serialize for Properties
impl StructuralPartialEq for Properties
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnsafeUnpin for Properties
impl UnwindSafe for Properties
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