Enum InnerMessage

Source
pub enum InnerMessage {
Show 26 variants ActivateAction(Action), ActivateHint(String), ActivateSelection(), ClickHintElement(), ClickNextPage(), ClickPrevPage(), Credentials(String, String), EnterHintKey(char), EnterInsertMode(), FocusInput(), GetCredentials(), GetScrollPercentage(), Id(ExtensionId, PageId), InsertText(String), HideHints(), LoadUsernamePass(String, String), Open(Vec<String>), ResetScrollElement(), ScrollBottom(), ScrollBy(i64), ScrollByX(i64), ScrollPercentage(Percentage), ScrollTop(), SelectFile(String), ShowHints(String), SubmitLoginForm(),
}
Expand description

Message representing actions to to in the web page.

Variants§

§

ActivateAction(Action)

Response to ActivateHint.

§

ActivateHint(String)

Activate the selected hint according to the specified follow mode.

§

ActivateSelection()

Click on the link in the selection.

§

ClickHintElement()

Response to EnterHintKey.

§

ClickNextPage()

Regex lookup next page link to click

§

ClickPrevPage()

Regex lookup prev page link to click

§

Credentials(String, String)

Response to GetCredentials.

§

EnterHintKey(char)

Add a key to the current hint text.

§

EnterInsertMode()

Response to FocusInput.

§

FocusInput()

Focus the first text input.

§

GetCredentials()

Ask for the credentials from the login form.

§

GetScrollPercentage()

Ask for the scroll percentage of the web page.

§

Id(ExtensionId, PageId)

Send the page ID to the application to connect the web extension with the right window. Answer to GetId.

§

InsertText(String)

Insert some text in the currently focused text field.

§

HideHints()

Hide the hints.

§

LoadUsernamePass(String, String)

Write the username and password in the login form.

§

Open(Vec<String>)

Open the given URL. This is used when starting a new titanium process to tell the existing process to open a new window.

§

ResetScrollElement()

Reset the scroll element to None.

§

ScrollBottom()

Scroll to the bottom of the web page

§

ScrollBy(i64)

Scroll vertically by the specified amount of pixels.

§

ScrollByX(i64)

Scroll horizontally by the specified amount of pixels.

§

ScrollPercentage(Percentage)

Response of GetScrollPercentage.

§

ScrollTop()

Scroll to the top of the web page.

§

SelectFile(String)

Set the selected file on a file input.

§

ShowHints(String)

Show the hints over the elements.

§

SubmitLoginForm()

Submit the login form.

Trait Implementations§

Source§

impl Clone for InnerMessage

Source§

fn clone(&self) -> InnerMessage

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InnerMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InnerMessage

Source§

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 Serialize for InnerMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,