BinarySwitchBankStatus

Struct BinarySwitchBankStatus 

Source
pub struct BinarySwitchBankStatus<T>(pub T);
Expand description

Binary Switch Bank Status

Tuple Fields§

§0: T

Implementations§

Source§

impl<T: AsRef<[u8]>> BinarySwitchBankStatus<T>

Source

pub fn instance(&self) -> u32

Source

pub fn indicator_1(&self) -> NmeaOption<Indicator1>

Source

pub fn indicator_2(&self) -> NmeaOption<Indicator2>

Source

pub fn indicator_3(&self) -> NmeaOption<Indicator3>

Source

pub fn indicator_4(&self) -> NmeaOption<Indicator4>

Source

pub fn indicator_5(&self) -> NmeaOption<Indicator5>

Source

pub fn indicator_6(&self) -> NmeaOption<Indicator6>

Source

pub fn indicator_7(&self) -> NmeaOption<Indicator7>

Source

pub fn indicator_8(&self) -> NmeaOption<Indicator8>

Source

pub fn indicator_9(&self) -> NmeaOption<Indicator9>

Source

pub fn indicator_10(&self) -> NmeaOption<Indicator10>

Source

pub fn indicator_11(&self) -> NmeaOption<Indicator11>

Source

pub fn indicator_12(&self) -> NmeaOption<Indicator12>

Source

pub fn indicator_13(&self) -> NmeaOption<Indicator13>

Source

pub fn indicator_14(&self) -> NmeaOption<Indicator14>

Source

pub fn indicator_15(&self) -> NmeaOption<Indicator15>

Source

pub fn indicator_16(&self) -> NmeaOption<Indicator16>

Source

pub fn indicator_17(&self) -> NmeaOption<Indicator17>

Source

pub fn indicator_18(&self) -> NmeaOption<Indicator18>

Source

pub fn indicator_19(&self) -> NmeaOption<Indicator19>

Source

pub fn indicator_20(&self) -> NmeaOption<Indicator20>

Source

pub fn indicator_21(&self) -> NmeaOption<Indicator21>

Source

pub fn indicator_22(&self) -> NmeaOption<Indicator22>

Source

pub fn indicator_23(&self) -> NmeaOption<Indicator23>

Source

pub fn indicator_24(&self) -> NmeaOption<Indicator24>

Source

pub fn indicator_25(&self) -> NmeaOption<Indicator25>

Source

pub fn indicator_26(&self) -> NmeaOption<Indicator26>

Source

pub fn indicator_27(&self) -> NmeaOption<Indicator27>

Source

pub fn indicator_28(&self) -> NmeaOption<Indicator28>

Source§

impl BinarySwitchBankStatus<&[u8]>

Source

pub fn is_match(&self, pgn: u32) -> bool

Source

pub fn get_pgn() -> u32

Source

pub fn get_message_type() -> PgnType

Trait Implementations§

Source§

impl<T: AsRef<[u8]>> BitRange<i128> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i128

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i16> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i16

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i32> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i32

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i64> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i64

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<i8> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> i8

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u128> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u128

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u16> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u16

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u32> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u32

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u64> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u64

Get a range of bits.
Source§

impl<T: AsRef<[u8]>> BitRange<u8> for BinarySwitchBankStatus<T>

Source§

fn bit_range(&self, msb: usize, lsb: usize) -> u8

Get a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i128> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i128)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i16> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i16)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i32> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i32)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i64> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i64)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<i8> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: i8)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u128> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u128)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u16> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u16)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u32> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u32)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u64> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u64)

Set a range of bits.
Source§

impl<T: AsMut<[u8]>> BitRangeMut<u8> for BinarySwitchBankStatus<T>

Source§

fn set_bit_range(&mut self, msb: usize, lsb: usize, value: u8)

Set a range of bits.
Source§

impl<T: AsRef<[u8]> + Debug> Debug for BinarySwitchBankStatus<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for BinarySwitchBankStatus<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for BinarySwitchBankStatus<T>
where T: RefUnwindSafe,

§

impl<T> Send for BinarySwitchBankStatus<T>
where T: Send,

§

impl<T> Sync for BinarySwitchBankStatus<T>
where T: Sync,

§

impl<T> Unpin for BinarySwitchBankStatus<T>
where T: Unpin,

§

impl<T> UnwindSafe for BinarySwitchBankStatus<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Bit for T
where T: BitRange<u8>,

Source§

fn bit(&self, bit: usize) -> bool

Get a single bit.
Source§

impl<T> BitMut for T
where T: BitRangeMut<u8>,

Source§

fn set_bit(&mut self, bit: usize, value: bool)

Set a single bit.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.