pub struct Options {
    pub preparation: Option<String>,
    pub preparation_repeats: Option<usize>,
    pub mantras: Vec<Mantra>,
    pub conclusion: Option<String>,
    pub conclusion_repeats: Option<usize>,
    pub repeats: Option<usize>,
    pub rate_ns: u64,
}
Expand description

The options used to configure the mantra miner.

Fields

preparation: Option<String>

Traditional Buddhist sadhanas, or ritual practices, consists of three parts. The first part, preparation, consists of taking refuge in the Three Jewels and arising bodhicitta, the desire to attain enlightenment for the benefit of all sentient beings.

preparation_repeats: Option<usize>

The number of times to repeat the preparation. If the value is None, it will be recited once.

mantras: Vec<Mantra>

The second part of the sadhana is the main body of the practice, which for the purposes of this mantra miner consists of reciting the given mantras.

conclusion: Option<String>

The third part of the sadhana is the conclusion, which traditionally consists of dedicating the merit of the practice to all sentient beings.

conclusion_repeats: Option<usize>

The number of times to repeat the conclusion. If the value is None, it will be recited once.

repeats: Option<usize>

The number of times to repeat the entire sadhana. If it’s None, the sadhana will be repeated indefinitely until the miner is stopped or the program is terminated.

rate_ns: u64

The number of nanoseconds to wait between each syllable of a mantra or character of the preparation or conclusion.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.