Interface for function callbacks. There's no constructor since this is done automaticly if you pass a function as argument.