[−][src]Struct actix_settings::BasicSettings
Fields
actix: ActixSettings
application: A
Implementations
impl<A> BasicSettings<A> where
A: for<'de> Deserialize<'de>,
[src]
A: for<'de> Deserialize<'de>,
pub fn parse_toml<P>(filepath: P) -> AtResult<Self> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Parse an instance of Self
from a TOML
file located at filepath
.
If the file doesn't exist, it is generated from the default TOML
template, after which the newly generated file is read in and parsed.
pub fn from_default_template() -> AtResult<Self>
[src]
Parse an instance of Self
straight from the default TOML
template.
pub fn from_template(template: &str) -> AtResult<Self>
[src]
Parse an instance of Self
straight from the default TOML
template.
pub fn write_toml_file<P>(filepath: P) -> AtResult<()> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Write the default TOML
template to a new file, to be located
at filepath
. Return a Error::FileExists(_)
error if a
file already exists at that location.
pub fn override_field<F, V>(field: &mut F, value: V) -> AtResult<()> where
F: Parse,
V: AsRef<str>,
[src]
F: Parse,
V: AsRef<str>,
pub fn override_field_with_env_var<F, N>(
field: &mut F,
var_name: N
) -> AtResult<()> where
F: Parse,
N: AsRef<str>,
[src]
field: &mut F,
var_name: N
) -> AtResult<()> where
F: Parse,
N: AsRef<str>,
Trait Implementations
impl<A: Clone> Clone for BasicSettings<A>
[src]
fn clone(&self) -> BasicSettings<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug> Debug for BasicSettings<A>
[src]
impl<'de, A> Deserialize<'de> for BasicSettings<A> where
A: Deserialize<'de>,
[src]
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Eq> Eq for BasicSettings<A>
[src]
impl<A: Hash> Hash for BasicSettings<A>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: PartialEq> PartialEq<BasicSettings<A>> for BasicSettings<A>
[src]
fn eq(&self, other: &BasicSettings<A>) -> bool
[src]
fn ne(&self, other: &BasicSettings<A>) -> bool
[src]
impl<A> StructuralEq for BasicSettings<A>
[src]
impl<A> StructuralPartialEq for BasicSettings<A>
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for BasicSettings<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for BasicSettings<A> where
A: Send,
A: Send,
impl<A> Sync for BasicSettings<A> where
A: Sync,
A: Sync,
impl<A> Unpin for BasicSettings<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for BasicSettings<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,