[][src]Struct kubernix::ConfigBuilder

pub struct ConfigBuilder { /* fields omitted */ }

Builder for Config.

Methods

impl ConfigBuilder[src]

pub fn root<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self[src]

The root path during runtime

pub fn log_level<VALUE: Into<LevelFilter>>(&mut self, value: VALUE) -> &mut Self[src]

The logging level of the application

pub fn crio_cidr<VALUE: Into<IpNetwork>>(&mut self, value: VALUE) -> &mut Self[src]

Container Networking CIDR for CRI-O

pub fn cluster_cidr<VALUE: Into<IpNetwork>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Cluster CIDR

pub fn service_cidr<VALUE: Into<IpNetwork>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Service CIDR

pub fn build(&self) -> Result<Config, String>[src]

Builds a new Config.

Errors

If a required field has not been initialized.

Trait Implementations

impl Default for ConfigBuilder[src]

impl Clone for ConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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