#[non_exhaustive]pub struct DeviceFriendlyNameLength {
pub name_length: u8,
pub name_max_length: u8,
pub default_name_length: u8,
}Expand description
Represents the length data as returned by
DeviceFriendlyNameFeature::get_friendly_name_length.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name_length: u8The current length of the friendly device name.
name_max_length: u8The maximum length of the friendly device name.
default_name_length: u8The length of the default friendly device name.
Trait Implementations§
Source§impl Clone for DeviceFriendlyNameLength
impl Clone for DeviceFriendlyNameLength
Source§fn clone(&self) -> DeviceFriendlyNameLength
fn clone(&self) -> DeviceFriendlyNameLength
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 moreimpl Copy for DeviceFriendlyNameLength
Source§impl Debug for DeviceFriendlyNameLength
impl Debug for DeviceFriendlyNameLength
impl Eq for DeviceFriendlyNameLength
Source§impl Hash for DeviceFriendlyNameLength
impl Hash for DeviceFriendlyNameLength
Source§impl PartialEq for DeviceFriendlyNameLength
impl PartialEq for DeviceFriendlyNameLength
Source§fn eq(&self, other: &DeviceFriendlyNameLength) -> bool
fn eq(&self, other: &DeviceFriendlyNameLength) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceFriendlyNameLength
Auto Trait Implementations§
impl Freeze for DeviceFriendlyNameLength
impl RefUnwindSafe for DeviceFriendlyNameLength
impl Send for DeviceFriendlyNameLength
impl Sync for DeviceFriendlyNameLength
impl Unpin for DeviceFriendlyNameLength
impl UnsafeUnpin for DeviceFriendlyNameLength
impl UnwindSafe for DeviceFriendlyNameLength
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