[][src]Struct qaul_linux::cfg::Config

pub(crate) struct Config {
    pub(crate) peers: PathBuf,
    pub(crate) mode: String,
    pub(crate) addr: String,
    pub(crate) port: u16,
    pub(crate) no_upnp: bool,
    pub(crate) no_multicast: bool,
    pub(crate) webgui: String,
}

The app configuration

Fields

peers: PathBuf

Path to initial peer set

mode: String

Runtime mode (in netmod-tcp)

addr: String

What interface to bind on

port: u16

What port to bind on

no_upnp: bool

Disable upnp port forwarding

no_multicast: bool

Disable multicast local discovery

webgui: String

Web GUI path

Implementations

impl Config[src]

pub(crate) fn into_router(self) -> Arc<Router>[src]

Consume the application config into a fully initialised router

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]