pub struct WatchInterest {
pub battery: Option<Status>,
pub charger: Option<Status>,
pub battery_wake_on: Option<Status>,
pub charger_wake_on: Option<Status>,
}Expand description
Battery and charger fields whose changes trigger an evaluation, and those whose changes also
wake the system from suspend to do so. Each is a Status mask: only field presence matters.
Fields§
§battery: Option<Status>Sent as the battery WatchOptions.interest. None keeps battery-manager’s default, which
is every field it can watch. Changes to other fields are seen at the next evaluation, e.g.
the next sample requested through Evaluation::sample_interval.
charger: Option<Status>Sent as the charger WatchOptions.interest, like battery.
battery_wake_on: Option<Status>Sent as the battery WatchOptions.wake_on. None wakes the system on no field.
charger_wake_on: Option<Status>Sent as the charger WatchOptions.wake_on, like battery_wake_on.
Trait Implementations§
Source§impl Clone for WatchInterest
impl Clone for WatchInterest
Source§impl Debug for WatchInterest
impl Debug for WatchInterest
Source§impl Default for WatchInterest
impl Default for WatchInterest
Source§impl PartialEq for WatchInterest
impl PartialEq for WatchInterest
impl StructuralPartialEq for WatchInterest
Auto Trait Implementations§
impl Freeze for WatchInterest
impl RefUnwindSafe for WatchInterest
impl Send for WatchInterest
impl Sync for WatchInterest
impl Unpin for WatchInterest
impl UnsafeUnpin for WatchInterest
impl UnwindSafe for WatchInterest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more