pub struct ServiceActionResponse {
pub service: String,
pub action: ServiceAction,
pub state: ServiceState,
}Expand description
The state after the action, not a claim that it succeeded.
A start that answers errored is a complete, honest answer; the phone
shows the state and the user decides. Failures that stopped the action from
happening at all come back as PlatformBound::CommandError instead.
Fields§
§service: String§action: ServiceAction§state: ServiceStateTrait Implementations§
Source§impl Clone for ServiceActionResponse
impl Clone for ServiceActionResponse
Source§fn clone(&self) -> ServiceActionResponse
fn clone(&self) -> ServiceActionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceActionResponse
impl Debug for ServiceActionResponse
Source§impl<'de> Deserialize<'de> for ServiceActionResponse
impl<'de> Deserialize<'de> for ServiceActionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServiceActionResponse
Source§impl PartialEq for ServiceActionResponse
impl PartialEq for ServiceActionResponse
Source§impl Serialize for ServiceActionResponse
impl Serialize for ServiceActionResponse
impl StructuralPartialEq for ServiceActionResponse
Auto Trait Implementations§
impl Freeze for ServiceActionResponse
impl RefUnwindSafe for ServiceActionResponse
impl Send for ServiceActionResponse
impl Sync for ServiceActionResponse
impl Unpin for ServiceActionResponse
impl UnsafeUnpin for ServiceActionResponse
impl UnwindSafe for ServiceActionResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.