pub enum TripPointType {
OneshotTempAbove,
OneshotTempBelow,
// some variants omitted
}Expand description
Denotes the type of a particular trip point.
Variants§
OneshotTempAbove
This type of trip point is denoted by a critical temperature at which the trip point triggers and a direction. Once the trip point fires it is no longer configured and must be rearmed before it can fire again.
OneshotTempBelow
Implementations§
Source§impl TripPointType
impl TripPointType
pub fn from_primitive(prim: u16) -> Option<TripPointType>
pub fn from_primitive_allow_unknown(prim: u16) -> TripPointType
pub fn unknown() -> TripPointType
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for TripPointType
impl Clone for TripPointType
Source§fn clone(&self) -> TripPointType
fn clone(&self) -> TripPointType
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 Debug for TripPointType
impl Debug for TripPointType
Source§impl<D> Decode<TripPointType, D> for TripPointTypewhere
D: ResourceDialect,
impl<D> Decode<TripPointType, D> for TripPointTypewhere
D: ResourceDialect,
Source§fn new_empty() -> TripPointType
fn new_empty() -> TripPointType
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<TripPointType, D> for TripPointTypewhere
D: ResourceDialect,
impl<D> Encode<TripPointType, D> for TripPointTypewhere
D: ResourceDialect,
Source§impl Hash for TripPointType
impl Hash for TripPointType
Source§impl Ord for TripPointType
impl Ord for TripPointType
Source§fn cmp(&self, other: &TripPointType) -> Ordering
fn cmp(&self, other: &TripPointType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TripPointType
impl PartialEq for TripPointType
Source§impl PartialOrd for TripPointType
impl PartialOrd for TripPointType
Source§impl TypeMarker for TripPointType
impl TypeMarker for TripPointType
Source§type Owned = TripPointType
type Owned = TripPointType
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for TripPointType
impl ValueTypeMarker for TripPointType
Source§type Borrowed<'a> = TripPointType
type Borrowed<'a> = TripPointType
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<TripPointType as TypeMarker>::Owned,
) -> <TripPointType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TripPointType as TypeMarker>::Owned, ) -> <TripPointType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for TripPointType
impl Eq for TripPointType
impl StructuralPartialEq for TripPointType
Auto Trait Implementations§
impl Freeze for TripPointType
impl RefUnwindSafe for TripPointType
impl Send for TripPointType
impl Sync for TripPointType
impl Unpin for TripPointType
impl UnwindSafe for TripPointType
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