Struct ic_cron::types::Task [−][src]
pub struct Task {
pub id: TaskId,
pub payload: RemoteCallPayload,
pub scheduled_at: u64,
pub rescheduled_at: Option<u64>,
pub scheduling_interval: SchedulingInterval,
}Fields
id: TaskIdpayload: RemoteCallPayloadscheduled_at: u64rescheduled_at: Option<u64>scheduling_interval: SchedulingIntervalImplementations
pub fn new<Tuple: ArgumentEncoder>(
id: TaskId,
endpoint: RemoteCallEndpoint,
args: Tuple,
cycles: u64,
scheduled_at: u64,
rescheduled_at: Option<u64>,
scheduling_interval: SchedulingInterval
) -> CandidResult<Self>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Task
impl UnwindSafe for Task
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self