pub enum PwaCommands {
GetOsAppState(GetOsAppState),
Install(Install),
Uninstall(Uninstall),
Launch(Launch),
LaunchFilesInApp(LaunchFilesInApp),
OpenCurrentPageInApp(OpenCurrentPageInApp),
ChangeAppUserSettings(ChangeAppUserSettings),
}Variants§
GetOsAppState(GetOsAppState)
Install(Install)
Uninstall(Uninstall)
Launch(Launch)
LaunchFilesInApp(LaunchFilesInApp)
OpenCurrentPageInApp(OpenCurrentPageInApp)
ChangeAppUserSettings(ChangeAppUserSettings)
Implementations§
Source§impl PwaCommands
impl PwaCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for PwaCommands
impl Clone for PwaCommands
Source§fn clone(&self) -> PwaCommands
fn clone(&self) -> PwaCommands
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 PwaCommands
impl Debug for PwaCommands
Source§impl<'de> Deserialize<'de> for PwaCommands
impl<'de> Deserialize<'de> for PwaCommands
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
Source§impl From<ChangeAppUserSettings> for PwaCommands
impl From<ChangeAppUserSettings> for PwaCommands
Source§fn from(v: ChangeAppUserSettings) -> Self
fn from(v: ChangeAppUserSettings) -> Self
Converts to this type from the input type.
Source§impl From<GetOsAppState> for PwaCommands
impl From<GetOsAppState> for PwaCommands
Source§fn from(v: GetOsAppState) -> Self
fn from(v: GetOsAppState) -> Self
Converts to this type from the input type.
Source§impl From<Install> for PwaCommands
impl From<Install> for PwaCommands
Source§impl From<Launch> for PwaCommands
impl From<Launch> for PwaCommands
Source§impl From<LaunchFilesInApp> for PwaCommands
impl From<LaunchFilesInApp> for PwaCommands
Source§fn from(v: LaunchFilesInApp) -> Self
fn from(v: LaunchFilesInApp) -> Self
Converts to this type from the input type.
Source§impl From<OpenCurrentPageInApp> for PwaCommands
impl From<OpenCurrentPageInApp> for PwaCommands
Source§fn from(v: OpenCurrentPageInApp) -> Self
fn from(v: OpenCurrentPageInApp) -> Self
Converts to this type from the input type.
Source§impl From<PwaCommands> for BrowserProtocolCommands
impl From<PwaCommands> for BrowserProtocolCommands
Source§fn from(v: PwaCommands) -> Self
fn from(v: PwaCommands) -> Self
Converts to this type from the input type.
Source§impl From<PwaCommands> for Command
impl From<PwaCommands> for Command
Source§fn from(v: PwaCommands) -> Self
fn from(v: PwaCommands) -> Self
Converts to this type from the input type.
Source§impl From<Uninstall> for PwaCommands
impl From<Uninstall> for PwaCommands
Source§impl PartialEq for PwaCommands
impl PartialEq for PwaCommands
Source§impl Serialize for PwaCommands
impl Serialize for PwaCommands
Source§impl TryFrom<BrowserProtocolCommands> for PwaCommands
impl TryFrom<BrowserProtocolCommands> for PwaCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <PwaCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <PwaCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for PwaCommands
impl TryFrom<Command> for PwaCommands
Source§impl TryFrom<PwaCommands> for ChangeAppUserSettings
impl TryFrom<PwaCommands> for ChangeAppUserSettings
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <ChangeAppUserSettings as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <ChangeAppUserSettings as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for GetOsAppState
impl TryFrom<PwaCommands> for GetOsAppState
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <GetOsAppState as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <GetOsAppState as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for Install
impl TryFrom<PwaCommands> for Install
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <Install as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <Install as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for Launch
impl TryFrom<PwaCommands> for Launch
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <Launch as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <Launch as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for LaunchFilesInApp
impl TryFrom<PwaCommands> for LaunchFilesInApp
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <LaunchFilesInApp as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <LaunchFilesInApp as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for OpenCurrentPageInApp
impl TryFrom<PwaCommands> for OpenCurrentPageInApp
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <OpenCurrentPageInApp as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <OpenCurrentPageInApp as TryFrom<PwaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for Uninstall
impl TryFrom<PwaCommands> for Uninstall
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <Uninstall as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <Uninstall as TryFrom<PwaCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for PwaCommands
Auto Trait Implementations§
impl Freeze for PwaCommands
impl RefUnwindSafe for PwaCommands
impl Send for PwaCommands
impl Sync for PwaCommands
impl Unpin for PwaCommands
impl UnsafeUnpin for PwaCommands
impl UnwindSafe for PwaCommands
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