pub struct Feedpattern {
pub profile_id: i32,
pub profile_name: String,
pub feedphases: Vec<FeedPhase>,
}Expand description
Holds the configuration data of one feed pattern.
Fields§
§profile_id: i32Numeric ID of the feed profile Data is not used in the implementation. Therefore, it is tagged as unused.
profile_name: Stringname of the feed profile
feedphases: Vec<FeedPhase>vector of type FeedPhase
Implementations§
Source§impl Feedpattern
impl Feedpattern
Sourcepub fn calc_feeder_runtime(&self) -> f64
pub fn calc_feeder_runtime(&self) -> f64
Calculates the total duration (in seconds) that the feeder motor will be active for this feed pattern.
This function iterates through all defined FeedPhasees within the pattern and sums
their individual feed_duration values. This total runtime is typically logged
as part of a completed feed event.
§Returns
The total feeder run time for this pattern, expressed as an f64 in seconds.
Auto Trait Implementations§
impl Freeze for Feedpattern
impl RefUnwindSafe for Feedpattern
impl Send for Feedpattern
impl Sync for Feedpattern
impl Unpin for Feedpattern
impl UnwindSafe for Feedpattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more