automata/cron/parser
Types
pub type ParseError {
InvalidExpression(value: String)
InvalidFieldCount(expected: Int, actual: Int)
EmptyField(field: ast.Field)
UnsupportedSyntax(field: ast.Field, value: String)
RebootNotSupported(value: String)
}
Constructors
-
InvalidExpression(value: String) -
InvalidFieldCount(expected: Int, actual: Int) -
EmptyField(field: ast.Field) -
UnsupportedSyntax(field: ast.Field, value: String) -
RebootNotSupported(value: String)@rebootis recognised as a Vixie nickname but has no 5-field equivalent — it is a startup hook, not a recurring schedule. The library refuses to fabricate a schedule for it; callers that want startup behaviour should run their hook from the host process supervisor instead.
Values
pub fn parse(
input input: String,
) -> Result(ast.RawCron, ParseError)