Module linkspace::runtime::cb

source ·
Expand description

(rust only) lk_watch takes the callback PktHandler which are quick to impl with cb and try_cb. Other languages should use their own function syntax as argument to lk_watch. *

Enums

Traits

Functions

  • takes a fn(&dyn NetPkt,&Linkspace) -> bool[should_continue] and returns impl PktHandler
  • takes any fn(&dyn NetPkt,&Linkspace) -> Try (e.g. Result or Option) and returns impl PktHandler that logs on break