Skip to main content

DevServerConfig

Struct DevServerConfig 

Source
pub struct DevServerConfig { /* private fields */ }
Expand description

Configuration for starting a live hot-reload and Dynamic WASM OTA development server.

Implementations§

Source§

impl DevServerConfig

Source

pub fn get_target(&self) -> DevTargetArg

Source

pub fn get_mut_target(&mut self) -> &mut DevTargetArg

Source

pub fn set_target(&mut self, val: DevTargetArg) -> &mut Self

Source

pub fn get_render(&self) -> RenderArg

Source

pub fn get_mut_render(&mut self) -> &mut RenderArg

Source

pub fn set_render(&mut self, val: RenderArg) -> &mut Self

Source

pub fn get_release(&self) -> bool

Source

pub fn get_mut_release(&mut self) -> &mut bool

Source

pub fn set_release(&mut self, val: bool) -> &mut Self

Source

pub fn get_src_dir(&self) -> &PathBuf

Source

pub fn get_mut_src_dir(&mut self) -> &mut PathBuf

Source

pub fn set_src_dir(&mut self, val: PathBuf) -> &mut Self

Source

pub fn get_out_dir(&self) -> &PathBuf

Source

pub fn get_mut_out_dir(&mut self) -> &mut PathBuf

Source

pub fn set_out_dir(&mut self, val: PathBuf) -> &mut Self

Source

pub fn get_title(&self) -> String

Source

pub fn try_get_title(&self) -> &Option<String>

Source

pub fn get_mut_title(&mut self) -> &mut Option<String>

Source

pub fn set_title(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_base_url(&self) -> &String

Source

pub fn get_mut_base_url(&mut self) -> &mut String

Source

pub fn set_base_url(&mut self, val: String) -> &mut Self

Source

pub fn get_package(&self) -> String

Source

pub fn try_get_package(&self) -> &Option<String>

Source

pub fn get_mut_package(&mut self) -> &mut Option<String>

Source

pub fn set_package(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_host(&self) -> &String

Source

pub fn get_mut_host(&mut self) -> &mut String

Source

pub fn set_host(&mut self, val: String) -> &mut Self

Source

pub fn get_port(&self) -> u16

Source

pub fn get_mut_port(&mut self) -> &mut u16

Source

pub fn set_port(&mut self, val: u16) -> &mut Self

Source

pub fn get_poll_ms(&self) -> u64

Source

pub fn get_mut_poll_ms(&mut self) -> &mut u64

Source

pub fn set_poll_ms(&mut self, val: u64) -> &mut Self

Source

pub fn get_enable_ota(&self) -> bool

Source

pub fn get_mut_enable_ota(&mut self) -> &mut bool

Source

pub fn set_enable_ota(&mut self, val: bool) -> &mut Self

Source

pub fn get_once(&self) -> bool

Source

pub fn get_mut_once(&mut self) -> &mut bool

Source

pub fn set_once(&mut self, val: bool) -> &mut Self

Trait Implementations§

Source§

impl Clone for DevServerConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DevServerConfig

Source§

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

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

impl Default for DevServerConfig

Default dev server configuration targeting local Web development with OTA enabled.

Source§

fn default() -> Self

Returns a sensible default DevServerConfig bound to 127.0.0.1:8080.

§Returns
  • Self - Default development server configuration.
Source§

impl<'de> Deserialize<'de> for DevServerConfig

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 Eq for DevServerConfig

Source§

impl PartialEq for DevServerConfig

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for DevServerConfig

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
Source§

impl StructuralPartialEq for DevServerConfig

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.