automata/event/builtin/match

Values

pub fn is_custom(
  event event: event.Event(body.EventBody),
) -> Bool
pub fn is_custom_kind(
  event event: event.Event(body.EventBody),
  kind kind: String,
) -> Bool
pub fn is_file_event(
  event event: event.Event(body.EventBody),
) -> Bool

True when the event’s body is a FileSystem(_) variant. Use is_file_with_op to discriminate by Op.

pub fn is_file_with_op(
  event event: event.Event(body.EventBody),
  op op: ast.Op,
) -> Bool

True when the event’s body is FileSystem(_) and the wrapped WatchEvent carries op in its op set. This replaces the legacy is_file_created/modified/deleted/renamed helpers; pass Create, Write, Remove, Rename, or Chmod for the same effect.

pub fn is_manual(
  event event: event.Event(body.EventBody),
) -> Bool
pub fn is_schedule_kind(
  event event: event.Event(body.EventBody),
  kind kind: body.ScheduleKind,
) -> Bool
pub fn is_scheduled(
  event event: event.Event(body.EventBody),
) -> Bool
Search Document