type 'a io = 'a Lwt.ttype buffer = Cstruct.ttype macaddr = Macaddr.tval register : t -> (id, Mirage_net.Net.error) Stdlib.resultUnregister the listener, then block until all callbacks return for this * id. Useful when listeners are called in async.
val write : t -> id -> size:int -> (buffer -> int) -> (unit, Mirage_net.Net.error) Stdlib.result io