e9p_fs behaviour (e9p v0.1.0)
Summary
Types
Callbacks
-callback read(fid(), path(), Offset :: non_neg_integer(), Length :: non_neg_integer(), state()) -> result({fid_state(), iodata()}).
-callback root(UName :: unicode:chardata(), AName :: unicode:chardata(), state()) -> {ok, fid_state(), state()}.
-callback walk(fid(), File :: unicode:chardata(), unicode:chardata(), state()) -> {fid() | false, state()}.
-callback write(fid(), path(), Offset :: non_neg_integer(), Data :: iodata(), state()) -> result({fid_state(), non_neg_integer()}).