Struct wasmer_wasix::os::console::cconst::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
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

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

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.

§

impl<T> Instrument for T

§

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

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

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
§

impl<T> LayoutRaw for T

§

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

Returns the layout of the type.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Pointee for T

§

type Metadata = ()

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

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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.
§

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

§

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

upcast ref
§

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

upcast mut ref
§

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

upcast boxed dyn
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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