EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so <pink>EMILUA(3em)</pink> is the manual page for Emilua β€” the Lua execution engine, bestie. That's the whole vibe up top. πŸ’…βœ¨


✨ FUNCTIONS ✨

here's the full function menu, and no we are not skipping any of it. eat every crumb. πŸ“

  • new() β†’ pipe.write_stream β€” okay so this constructor comes in two flavors:
new()                    (1)
new(fd: file_descriptor) (2)
  • (1) β€” default constructor.
  • (2) β€” converts a file descriptor into a pipe end.
  • close(self) β€” close the pipe.

it forwards the call to the same-named function in Boost.Asio at https://www.boost.org/doc/libs/1_79_0/doc/html/boost_asio/reference/basic_writable_pipe/close/overload2.html, and that function says:

Any asynchronous write operations will be cancelled immediately, and will complete with the boost::asio::error::operation_aborted error.
  • cancel(self) β€” cancel all asynchronous operations associated with the pipe.

it forwards the call to the same-named function in Boost.Asio at https://www.boost.org/doc/libs/1_79_0/doc/html/boost_asio/reference/basic_writable_pipe/cancel/overload2.html, and that function says:

This function causes all outstanding asynchronous write operations to finish immediately, and the handlers for cancelled operations will be passed the boost::asio::error::operation_aborted error.
  • assign(self, fd: file_descriptor) β€” assign an existing native pipe to self. slay. 🫢
  • release(self) β†’ file_descriptor β€” release ownership of the native descriptor implementation.

it forwards the call to the same-named function in Boost.Asio at https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/reference/basic_writable_pipe/release/overload2.html, and that function says:

This function causes all outstanding asynchronous write operations to finish immediately, and the handlers for cancelled operations will be passed the boost::asio::error::operation_aborted error. Ownership of the native pipe is then transferred to the caller.
  • write_some(self, buffer: byte_span) β†’ integer β€” write data to the pipe and block the current fiber until it completes or errs. returns the number of bytes written. periodt. πŸ”₯

🌸 PROPERTIES 🌸

  • is_open: boolean β€” whether the pipe is open. literal vibe check: open or not, iykyk. πŸ’–

xoxo, this iconic page is from Emilua version 0.12.1-nixpkgs1, dated 1980-01-01. πŸ’‹βœ¨

πŸ“¦ where this page comes from