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