[][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


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


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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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]