Quic.IO behaviour (elixir_quic v0.16.7)

Copy Markdown View Source

Socket-free IO adapter contract.

Adapters perform local IO only. A successful send returns its actual local completion timestamp in monotonic microseconds, not a peer acknowledgement. Admission, generations, amplification accounting and timer validation live in Quic.IO.Endpoint.

Summary

Callbacks

close(term)

@callback close(term()) :: :ok | {:error, term()}

monotonic_time()

@callback monotonic_time() :: integer()

send(term, binary, term)

@callback send(term(), binary(), term()) :: {:ok, integer()} | {:error, term()}