Struct mantra_miner::Options
source · [−]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.