[][src]Struct rusty_ci::Worker

pub struct Worker { /* fields omitted */ }

This struct holds the information that is used to build the worker buildbot.tac file Each worker has:

  • a name that is used by the builders to assign work,
  • a password that the master uses to access the worker
  • a working directory name that the bot will be created in
  • the host address of the master bot, the ip
  • the port of the master bot

Methods

impl Worker[src]

pub fn get_name(&self) -> String[src]

Retrieves the name field of the struct

pub fn get_dir(&self) -> String[src]

Retrieves the working dir field of the struct

pub fn get_password(&self) -> String[src]

Retrieves the password field of the struct

Trait Implementations

impl From<Yaml> for Worker[src]

Convert a Yaml section to a Worker

The worker requires that the yaml section has the following subsections: masterhost, masterport, password, and basedir. Masterhost holds the host address of the master bot, Masterport hold the host port of the master bot. Basedir holds the path of the working directory of the bot

impl Display for Worker[src]

This is similar to the Display impl for the MasterConfig struct. This returns the Python buildbot.tac file for an individual worker.

Auto Trait Implementations

impl Send for Worker

impl Sync for Worker

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[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]