[][src]Struct cjdns_admin::Opts

pub struct Opts {
    pub addr: Option<String>,
    pub port: Option<u16>,
    pub password: Option<String>,
    pub config_file_path: Option<String>,
    pub anon: bool,
}

Connection options. Can be loaded from a config file.

Fields

addr: Option<String>

Remote IP address (either IPv4 or IPv6).

port: Option<u16>

Remote UDP port.

password: Option<String>

Password for authentication. If None, default "NONE" password is used.

config_file_path: Option<String>

Optional path to config file (~/.cjdnsadmin used by default).

anon: bool

Anonymous connection - do not use password.

Trait Implementations

impl Clone for Opts[src]

impl Debug for Opts[src]

impl Default for Opts[src]

impl<'de> Deserialize<'de> for Opts[src]

impl Eq for Opts[src]

impl PartialEq<Opts> for Opts[src]

impl StructuralEq for Opts[src]

impl StructuralPartialEq for Opts[src]

Auto Trait Implementations

impl RefUnwindSafe for Opts

impl Send for Opts

impl Sync for Opts

impl Unpin for Opts

impl UnwindSafe for Opts

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

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

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

impl<T> Payload for T where
    T: Default + DeserializeOwned
[src]

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>,