[][src]Struct barebones_watchface::BarebonesWatchFace

pub struct BarebonesWatchFace {
    pub time_label: Ptr,
    pub date_label: Ptr,
    pub bluetooth_label: Ptr,
    pub power_label: Ptr,
}

Barebones Watch Face with no frills

Fields

time_label: Ptr

Label for Time: "12:34"

date_label: Ptr

Label for Date: "MON 22 MAY 2020"

bluetooth_label: Ptr

Label for Bluetooth State (Bluetooth Icon)

power_label: Ptr

Label for Power Indicator (Charging & Battery)

Trait Implementations

impl WatchFace for BarebonesWatchFace[src]

fn new() -> MynewtResult<Self>[src]

Create the widgets for the Watch Face

fn update(&mut self, state: &WatchFaceState) -> MynewtResult<()>[src]

Update the widgets in the Watch Face with the current state

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.