Skip to main content

Enum tauri::api::config::AppUrl

#[non_exhaustive]
pub enum AppUrl {
    Url(WindowUrl),
    Files(Vec<PathBuf, Global>),
}

The dev_path and dist_dir options.

Variants (Non-exhaustive)#

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Url(WindowUrl)

A url or file path.

Files(Vec<PathBuf, Global>)

An array of files.

Trait Implementations#

impl Clone for AppUrl#

pub fn clone(&self) -> AppUrl#

Returns a copy of the value. Read more

clone_from#

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

Performs copy-assignment from source. Read more

Defined in: clone.rs:130

impl Debug for AppUrl#

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

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for AppUrl#

pub fn deserialize<__D>( __deserializer: __D ) -> Result<AppUrl, <__D as Deserializer<'de>>::Error> where __D: Deserializer<'de>,#

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<AppUrl> for AppUrl#

pub fn eq(&self, other: &AppUrl) -> bool#

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &AppUrl) -> bool#

This method tests for !=.

impl StructuralPartialEq for AppUrl#

impl ToTokens for AppUrl#

pub fn to_tokens(&self, tokens: &mut TokenStream)#

Write self to the given TokenStream. Read more

to_token_stream#

pub fn to_token_stream(&self) -> TokenStream

Convert self directly into a TokenStream object. Read more

Defined in: to_tokens.rs:61

into_token_stream#

pub fn into_token_stream(self) -> TokenStream

Convert self directly into a TokenStream object. Read more

Defined in: to_tokens.rs:71-73

Auto Trait Implementations#

impl RefUnwindSafe for AppUrl#

impl Send for AppUrl#

impl Sync for AppUrl#

impl Unpin for AppUrl#

impl UnwindSafe for AppUrl#

Blanket Implementations#

Any#

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

Defined in: any.rs:131-135

type_id#

pub fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more

Defined in: any.rs:132

Borrow#

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

Defined in: borrow.rs:208-213

borrow#

pub fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

Defined in: borrow.rs:210

BorrowMut#

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

Defined in: borrow.rs:216-220

borrow_mut#

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

Mutably borrows from an owned value. Read more

Defined in: borrow.rs:217

CommandArg#

impl<'de, D, P> CommandArg<'de, P> for D where
    P: Params,
    D: Deserialize<'de>, 

Defined in: command.rs:47-52

from_command#

pub fn from_command(CommandItem<'de, P>) -> Result<D, InvokeError>

Derives an instance of Self from the CommandItem. Read more

Defined in: command.rs:48-51

DeserializeOwned#

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

Defined in: mod.rs:603

From#

impl<T> From<T> for T

Defined in: mod.rs:544-548

from#

pub fn from(t: T) -> T

Performs the conversion.

Defined in: mod.rs:545

Into#

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

Defined in: mod.rs:533-540

into#

pub fn into(self) -> U

Performs the conversion.

Defined in: mod.rs:537

ToOwned#

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

Defined in: borrow.rs:81-93

type Owned = T#

The resulting type after obtaining ownership.

to_owned#

pub fn to_owned(&self) -> T

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

Defined in: borrow.rs:86

clone_into#

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

Defined in: borrow.rs:90

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

TryFrom#

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

Defined in: mod.rs:581-590

type Error = Infallible#

The type returned in the event of a conversion error.

try_from#

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

Performs the conversion.

Defined in: mod.rs:587

TryInto#

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

Defined in: mod.rs:567-576

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

The type returned in the event of a conversion error.

try_into#

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

Performs the conversion.

Defined in: mod.rs:573

impl<V, T> VZip<V> for T where V: MultiLane<T>,#

pub fn vzip(self) -> V#