[−][src]Struct bluetooth_mesh::foundation::state::DefaultTTLState
Methods
impl DefaultTTLState
[src]
pub fn new(v: u8) -> DefaultTTLState
[src]
pub fn try_new(v: u8) -> Option<DefaultTTLState>
[src]
Tries to create a new DefaultTTL
from a u8.
Will return None
if v==0x01 || (0x80 < v <= 0xFF)
.
Trait Implementations
impl Clone for DefaultTTLState
[src]
fn clone(&self) -> DefaultTTLState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DefaultTTLState
[src]
impl Debug for DefaultTTLState
[src]
impl Default for DefaultTTLState
[src]
impl Eq for DefaultTTLState
[src]
impl From<DefaultTTLState> for u8
[src]
fn from(ttl: DefaultTTLState) -> Self
[src]
impl Hash for DefaultTTLState
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DefaultTTLState
[src]
fn cmp(&self, other: &DefaultTTLState) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DefaultTTLState> for DefaultTTLState
[src]
fn eq(&self, other: &DefaultTTLState) -> bool
[src]
fn ne(&self, other: &DefaultTTLState) -> bool
[src]
impl PartialOrd<DefaultTTLState> for DefaultTTLState
[src]
fn partial_cmp(&self, other: &DefaultTTLState) -> Option<Ordering>
[src]
fn lt(&self, other: &DefaultTTLState) -> bool
[src]
fn le(&self, other: &DefaultTTLState) -> bool
[src]
fn gt(&self, other: &DefaultTTLState) -> bool
[src]
fn ge(&self, other: &DefaultTTLState) -> bool
[src]
impl StructuralEq for DefaultTTLState
[src]
impl StructuralPartialEq for DefaultTTLState
[src]
impl TryFrom<u8> for DefaultTTLState
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultTTLState
impl Send for DefaultTTLState
impl Sync for DefaultTTLState
impl Unpin for DefaultTTLState
impl UnwindSafe for DefaultTTLState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,