Skip to content
Permalink
Browse files

Sort ops

  • Loading branch information...
ry committed Mar 12, 2019
1 parent 6b07ed1 commit 9691d7b53bea5a2656ec47e8437fac1f527b3cce
Showing with 57 additions and 57 deletions.
  1. +50 −50 src/msg.fbs
  2. +7 −7 src/ops.rs
@@ -1,74 +1,74 @@
union Any {
Start,
StartRes,
FormatError,
FormatErrorRes,
WorkerGetMessage,
WorkerGetMessageRes,
WorkerPostMessage,
FetchModuleMetaData,
FetchModuleMetaDataRes,
SetTimeout,
Exit,
Accept,
Chdir,
Chmod,
Close,
CopyFile,
Cwd,
CwdRes,
Dial,
Environ,
EnvironRes,
Permissions,
PermissionRevoke,
PermissionsRes,
Exit,
Fetch,
FetchModuleMetaData,
FetchModuleMetaDataRes,
FetchRes,
FormatError,
FormatErrorRes,
IsTTY,
IsTTYRes,
Listen,
ListenRes,
MakeTempDir,
MakeTempDirRes,
Metrics,
MetricsRes,
Mkdir,
Chmod,
Remove,
ReadFile,
ReadFileRes,
NewConn,
Now,
NowRes,
Open,
OpenRes,
PermissionRevoke,
Permissions,
PermissionsRes,
Read,
ReadDir,
ReadDirRes,
WriteFile,
CopyFile,
Rename,
ReadFile,
ReadFileRes,
ReadRes,
Readlink,
ReadlinkRes,
ReplStart,
ReplStartRes,
Remove,
Rename,
ReplReadline,
ReplReadlineRes,
ReplStart,
ReplStartRes,
Resources,
ResourcesRes,
Symlink,
Stat,
StatRes,
SetEnv,
Truncate,
Open,
OpenRes,
Read,
ReadRes,
Write,
WriteRes,
Close,
Shutdown,
Listen,
ListenRes,
Accept,
Dial,
NewConn,
Chdir,
Cwd,
CwdRes,
Metrics,
MetricsRes,
Run,
RunRes,
RunStatus,
RunStatusRes,
Now,
NowRes,
IsTTY,
IsTTYRes,
Seek,
SetEnv,
SetTimeout,
Shutdown,
Start,
StartRes,
Stat,
StatRes,
Symlink,
Truncate,
WorkerGetMessage,
WorkerGetMessageRes,
WorkerPostMessage,
Write,
WriteFile,
WriteRes,
}

enum ErrorKind: byte {
@@ -93,30 +93,35 @@ pub fn dispatch(
msg::Any::Chdir => op_chdir,
msg::Any::Chmod => op_chmod,
msg::Any::Close => op_close,
msg::Any::FetchModuleMetaData => op_fetch_module_meta_data,
msg::Any::CopyFile => op_copy_file,
msg::Any::Cwd => op_cwd,
msg::Any::Dial => op_dial,
msg::Any::Environ => op_env,
msg::Any::Exit => op_exit,
msg::Any::Fetch => op_fetch,
msg::Any::FetchModuleMetaData => op_fetch_module_meta_data,
msg::Any::FormatError => op_format_error,
msg::Any::IsTTY => op_is_tty,
msg::Any::Listen => op_listen,
msg::Any::MakeTempDir => op_make_temp_dir,
msg::Any::Metrics => op_metrics,
msg::Any::Mkdir => op_mkdir,
msg::Any::Now => op_now,
msg::Any::Open => op_open,
msg::Any::PermissionRevoke => op_revoke_permission,
msg::Any::Permissions => op_permissions,
msg::Any::Read => op_read,
msg::Any::ReadDir => op_read_dir,
msg::Any::ReadFile => op_read_file,
msg::Any::Readlink => op_read_link,
msg::Any::Read => op_read,
msg::Any::Remove => op_remove,
msg::Any::Rename => op_rename,
msg::Any::ReplReadline => op_repl_readline,
msg::Any::ReplStart => op_repl_start,
msg::Any::Resources => op_resources,
msg::Any::Run => op_run,
msg::Any::RunStatus => op_run_status,
msg::Any::Seek => op_seek,
msg::Any::SetEnv => op_set_env,
msg::Any::Shutdown => op_shutdown,
msg::Any::Start => op_start,
@@ -127,11 +132,6 @@ pub fn dispatch(
msg::Any::WorkerPostMessage => op_worker_post_message,
msg::Any::Write => op_write,
msg::Any::WriteFile => op_write_file,
msg::Any::Now => op_now,
msg::Any::IsTTY => op_is_tty,
msg::Any::Seek => op_seek,
msg::Any::Permissions => op_permissions,
msg::Any::PermissionRevoke => op_revoke_permission,
_ => panic!(format!(
"Unhandled message {}",
msg::enum_name_any(inner_type)

0 comments on commit 9691d7b

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.