Struct cw_croncat_core::msg::TaskRequestBuilder
source · pub struct TaskRequestBuilder { /* private fields */ }Implementations§
source§impl TaskRequestBuilder
impl TaskRequestBuilder
sourcepub fn with_interval(&mut self, interval: Interval) -> &mut Self
pub fn with_interval(&mut self, interval: Interval) -> &mut Self
Examples found in repository?
src/msg.rs (line 247)
246 247 248 249 250 251 252 253 254 255 256 257
pub fn once(&mut self) -> &mut Self {
self.with_interval(Interval::Once)
}
pub fn block(&mut self, block_inerval: u64) -> &mut Self {
self.with_interval(Interval::Block(block_inerval))
}
pub fn cron(&mut self, crontab: String) -> &mut Self {
self.with_interval(Interval::Cron(crontab))
}
pub fn immediate(&mut self) -> &mut Self {
self.with_interval(Interval::Immediate)
}pub fn once(&mut self) -> &mut Self
pub fn block(&mut self, block_inerval: u64) -> &mut Self
pub fn cron(&mut self, crontab: String) -> &mut Self
pub fn immediate(&mut self) -> &mut Self
sourcepub fn with_boundary(&mut self, boundary: Boundary) -> &mut Self
pub fn with_boundary(&mut self, boundary: Boundary) -> &mut Self
Examples found in repository?
src/msg.rs (lines 263-266)
262 263 264 265 266 267 268 269 270 271 272 273
pub fn with_time_boundary(&mut self, start: Timestamp, end: Timestamp) -> &mut Self {
self.with_boundary(Boundary::Time {
start: Some(start),
end: Some(end),
})
}
pub fn with_height_boundary(&mut self, start: u64, end: u64) -> &mut Self {
self.with_boundary(Boundary::Height {
start: Some(Uint64::new(start)),
end: Some(Uint64::new(end)),
})
}