wasmer_wasix::os::console::cconst

Struct ConsoleConst

Source
pub struct ConsoleConst {}

Implementations§

Source§

impl ConsoleConst

Source

pub const TERM_KEY_ENTER: u32 = 13u32

Source

pub const TERM_KEY_BACKSPACE: u32 = 8u32

Source

pub const TERM_KEY_INSERT: u32 = 45u32

Source

pub const TERM_KEY_DEL: u32 = 46u32

Source

pub const TERM_KEY_TAB: u32 = 9u32

Source

pub const TERM_KEY_HOME: u32 = 36u32

Source

pub const TERM_KEY_END: u32 = 35u32

Source

pub const TERM_KEY_PAGE_UP: u32 = 33u32

Source

pub const TERM_KEY_PAGE_DOWN: u32 = 34u32

Source

pub const TERM_KEY_LEFT_ARROW: u32 = 37u32

Source

pub const TERM_KEY_UP_ARROW: u32 = 38u32

Source

pub const TERM_KEY_RIGHT_ARROW: u32 = 39u32

Source

pub const TERM_KEY_DOWN_ARROW: u32 = 40u32

Source

pub const TERM_KEY_C: u32 = 67u32

Source

pub const TERM_KEY_L: u32 = 76u32

Source

pub const TERM_KEY_F1: u32 = 112u32

Source

pub const TERM_KEY_F2: u32 = 113u32

Source

pub const TERM_KEY_F3: u32 = 114u32

Source

pub const TERM_KEY_F4: u32 = 115u32

Source

pub const TERM_KEY_F5: u32 = 116u32

Source

pub const TERM_KEY_F6: u32 = 117u32

Source

pub const TERM_KEY_F7: u32 = 118u32

Source

pub const TERM_KEY_F8: u32 = 119u32

Source

pub const TERM_KEY_F9: u32 = 120u32

Source

pub const TERM_KEY_F10: u32 = 121u32

Source

pub const TERM_KEY_F11: u32 = 122u32

Source

pub const TERM_KEY_F12: u32 = 123u32

Source

pub const TERM_CURSOR_UP: &'static str = "\x1b[A"

Source

pub const TERM_CURSOR_DOWN: &'static str = "\x1b[B"

Source

pub const TERM_CURSOR_RIGHT: &'static str = "\x1b[C"

Source

pub const TERM_CURSOR_LEFT: &'static str = "\x1b[D"

Source

pub const TERM_DELETE_LINE: &'static str = "\x1b[2K\r"

Source

pub const TERM_DELETE_RIGHT: &'static str = "\x1b[0K\r"

Source

pub const TERM_DELETE_LEFT: &'static str = "\x1b[1K\r"

Source

pub const TERM_DELETE_BELOW: &'static str = "\x1b[0J\r"

Source

pub const TERM_DELETE_ABOVE: &'static str = "\x1b[1J\r"

Source

pub const TERM_DELETE_ALL: &'static str = "\x1b[2J\r"

Source

pub const TERM_DELETE_SAVED: &'static str = "\x1b[3J\r"

Source

pub const TERM_CURSOR_SAVE: &'static str = "\x1b[s"

Source

pub const TERM_CURSOR_RESTORE: &'static str = "\x1b[u"

Source

pub const TERM_WRAPAROUND: &'static str = "\x1b[?7h"

Source

pub const TERM_REVERSE_WRAPAROUND: &'static str = "\x1b[?45h"

Source

pub const TERM_NO_WRAPAROUND: &'static str = "\x1b[?7l"

Source

pub const TERM_NO_REVERSE_WRAPAROUND: &'static str = "\x1b[?45l"

Source

pub const COL_RESET: &'static str = "\x1B[0m"

Source

pub const COL_BLACK: &'static str = "\x1B[0;30m"

Source

pub const COL_GRAY: &'static str = "\x1B[1;30m"

Source

pub const COL_RED: &'static str = "\x1B[0;31m"

Source

pub const COL_LIGHT_RED: &'static str = "\x1B[1;31m"

Source

pub const COL_GREEN: &'static str = "\x1B[0;32m"

Source

pub const COL_LIGHT_GREEN: &'static str = "\x1B[1;32m"

Source

pub const COL_BROWN: &'static str = "\x1B[0;33m"

Source

pub const COL_YELLOW: &'static str = "\x1B[1;33m"

Source

pub const COL_BLUE: &'static str = "\x1B[0;34m"

Source

pub const COL_LIGHT_BLUE: &'static str = "\x1B[1;34m"

Source

pub const COL_PURPLE: &'static str = "\x1B[0;35m"

Source

pub const COL_LIGHT_PURPLE: &'static str = "\x1B[1;35m"

Source

pub const COL_CYAN: &'static str = "\x1B[0;36m"

Source

pub const COL_LIGHT_CYAN: &'static str = "\x1B[1;36m"

Source

pub const COL_LIGHT_GRAY: &'static str = "\x1B[0;37m"

Source

pub const COL_WHITE: &'static str = "\x1B[1;37m"

Source

pub const WELCOME_LARGE: &'static str = "\\x1B[1;34m\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557}\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2557} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\n\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551}\u{255a}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{255d} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557} \u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\n\u{255a}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{255a}\u{2550}\u{255d} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\n \u{255a}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\\x1B[37;1m\\r\n QUICK START: MORE INFO:\\x1B[1;30m\\r\n\u{2022} Wasmer commands: wasmer \u{2022} Usage Information: help\\r\n\u{2022} Core utils: coreutils \u{2022} About Wasmer: about wasmer\\r\n\u{2022} Pipe: echo blah | cat\\x1B[37;0m\\r\\r\\n"

Source

pub const WELCOME_MEDIUM: &'static str = "\\x1B[1;34m\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \\r\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\\r\n\u{2588}\u{2588}\u{2551} \u{2588}\u{2557} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557} \u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\\r\n\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551}\u{255a}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{255d} \u{2588}\u{2588}\u{2554}\u{2550}\u{2550}\u{2588}\u{2588}\u{2557}\\r\n\u{255a}\u{2588}\u{2588}\u{2588}\u{2554}\u{2588}\u{2588}\u{2588}\u{2554}\u{255d}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2551} \u{255a}\u{2550}\u{255d} \u{2588}\u{2588}\u{2551}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2588}\u{2557}\u{2588}\u{2588}\u{2551} \u{2588}\u{2588}\u{2551}\\r\n \u{255a}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\u{255a}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{255d}\u{255a}\u{2550}\u{255d} \u{255a}\u{2550}\u{255d}\\x1B[37;1m\\r\n Type \'help\' for commands.\\x1B[37;0m\\r\\r\\n"

Source

pub const WELCOME_SMALL: &'static str = "\\x1B[1;34m _ _ _ _____ ___ ____ _____ ____ \\r\n| | | (____ |/___| \\| ___ |/ ___)\\r\n| | | / ___ |___ | | | | ____| | \\r\n \\___/\\_____(___/|_|_|_|_____|_| \\x1B[37;0m\\r\\r\\n"

Source

pub const ABOUT: &'static str = "# Wasmer Terminal\n\nThis terminal is an Wasmer powered terminal hosted in a browser which implements\na basic operating system and is natively integrated with ATE and Wasmer.\n\nFor more information try:\n\nabout wasmer\n"

Source

pub const ABOUT_WASMER: &'static str = "# Wasmer\n\nWasmer is a fast and secure WebAssembly runtime that enables super\nlightweight containers to run anywhere: from Desktop to the Cloud, Edge and\nIoT devices.\n\nFeatures:\n\u{2022} Secure by default. No file, network, or environment access, unless\n explicitly enabled.\n\u{2022} Supports WASI out of the box.\n\u{2022} Fast. Run WebAssembly at near-native speeds.\n\u{2022} Embeddable in multiple programming languages\n\u{2022} Compliant with latest WebAssembly Proposals (SIMD, Reference Types,\n Threads, ...)\n"

Source

pub const HELP: &'static str = "# wasmer.sh\n\n## The Shell\n\nThe Wasmer WASM shell is an browser based operating system that integrates\nwith the WebAssembly community to assembly and build micro-applications.\n\nIncluding:\n- MemFS file system with mount points\n- stdin, stdout, stderr and tty support\n- Private file system space per process.\n- Full support for piping and TTY.\n- Fully multi-threaded.\n- Support for basic bash commands.\n\n## coreutil commands:\n\n arch, base32, base64, basename, cat, cksum, comm, cp, csplit, cut,\n date, dircolors, dirname, echo, env, expand, factor, false, fmt, fold,\n hashsum, head, join, link, ln, ls, md5sum, mkdir, mktemp, mv, nl, nproc,\n numfmt, od, paste, printenv, printf, ptx, pwd, readlink, realpath,\n relpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum,\n sha3-256sum, sha3-384sum, sha3-512sum, sha384sum, sha3sum, sha512sum,\n shake128sum, shake256sum, shred, shuf, sleep, sum, tee, touch, tr, true,\n truncate, tsort, unexpand, uniq, unlink, wc, yes"

Source

pub const BAD_WORKER: &'static str = "\n\\x1B[1;31mBackground worker threads failed - {error}\\x1B[30;1m\n\nIt would appear that your browser does not support background worker threads\nwhich means that https://wasmer.sh will not be able to launch processes and\neffectively becomes very limited.\\x1B[37;1m\n\nList supported major browsers:\n\n- Chrome for Desktop - \\x1B[30;1mversion 68 and above\\x1B[37;1m\n- Chrome for Android - \\x1B[30;1mversion 96 and above\\x1B[37;1m\n- Firefox for Desktop - \\x1B[30;1mversion 79 and above\\x1B[37;1m\n- Firefox for Android - \\x1B[30;1mversion 92 and above\\x1B[37;1m\n- Edge - \\x1B[30;1mversion 79 and above\\x1B[30;1m\n\nThe full list is provided here:\nhttps://caniuse.com/sharedarraybuffer\\x1B[37;1m\n\nPlease install and/or upgrade your browser to continue\n"

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcastable for T
where T: Any + Send + Sync + 'static,

Source§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

upcast ref
Source§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref
Source§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

upcast boxed dyn
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> MaybeSendSync for T