| /wasmtime-44.0.1/crates/wasi-common/src/ |
| H A D | file.rs | 26 Err(Error::badf()) in sock_accept() 34 Err(Error::badf()) in sock_recv() 42 Err(Error::badf()) in sock_send() 46 Err(Error::badf()) in sock_shutdown() 62 Err(Error::badf()) in set_fdflags() 79 Err(Error::badf()) in set_filestat_size() 83 Err(Error::badf()) in advise() 91 Err(Error::badf()) in set_times() 95 Err(Error::badf()) in read_vectored() 103 Err(Error::badf()) in read_vectored_at() [all …]
|
| H A D | dir.rs | 24 ) -> Result<OpenResult, Error> { in open_file() argument 25 Err(Error::not_supported()) in open_file() 29 Err(Error::not_supported()) in create_dir() 36 ) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + Send>, Error> { in readdir() argument 37 Err(Error::not_supported()) in readdir() 41 Err(Error::not_supported()) in symlink() 45 Err(Error::not_supported()) in remove_dir() 64 ) -> Result<Filestat, Error> { in get_path_filestat() argument 73 ) -> Result<(), Error> { in rename() argument 82 ) -> Result<(), Error> { in hard_link() argument [all …]
|
| H A D | table.rs | 1 use crate::{EnvError, Error, ErrorExt}; 35 pub fn push<T: Any + Send + Sync>(&self, a: Arc<T>) -> Result<u32, Error> { in push() argument 40 return Err(Error::trap(EnvError::msg("table has no free keys"))); in push() 70 pub fn get<T: Any + Send + Sync + Sized>(&self, key: u32) -> Result<Arc<T>, Error> { in get() argument 73 .map_err(|_| Error::badf().context("element is a different type")) in get() 75 Err(Error::badf().context("key not in table")) in get() 81 pub fn get_mut<T: Any>(&mut self, key: u32) -> Result<&mut T, Error> { in get_mut() argument 84 None => return Err(Error::badf().context("key not in table")), in get_mut() 92 .ok_or_else(|| Error::badf().context("element is a different type")) in get_mut() 108 pub fn renumber(&self, from: u32, to: u32) -> Result<(), Error> { in renumber() argument [all …]
|
| /wasmtime-44.0.1/crates/wasi-tls/src/ |
| H A D | error.rs | 4 pub struct Error(Arc<String>); struct 6 impl Error { impl 15 impl Clone for Error { implementation 20 impl std::fmt::Debug for Error { implementation 25 impl std::fmt::Display for Error { implementation 30 impl std::error::Error for Error {} implementation 31 impl From<std::io::Error> for Error { implementation 34 match err.downcast::<Error>() { in from() 40 impl From<Error> for std::io::Error { implementation 41 fn from(err: Error) -> Self { in from() [all …]
|
| /wasmtime-44.0.1/cranelift/srcgen/src/ |
| H A D | error.rs | 9 pub struct Error { struct 13 impl Error { impl 15 pub fn with_msg<S: Into<String>>(msg: S) -> Error { in with_msg() argument 16 Error { in with_msg() 22 impl std::error::Error for Error {} implementation 24 impl fmt::Display for Error { implementation 30 impl From<io::Error> for Error { implementation 31 fn from(e: io::Error) -> Self { in from() 32 Error { in from() 41 IoError(io::Error),
|
| /wasmtime-44.0.1/crates/core/src/error/ |
| H A D | error.rs | 425 pub struct Error { struct 436 impl fmt::Debug for Error { implementation 488 impl<E> From<E> for Error implementation 497 impl From<Error> for Box<dyn core::error::Error + Send + Sync + 'static> { 504 impl From<Error> for Box<dyn core::error::Error + Send + 'static> { 511 impl From<Error> for Box<dyn core::error::Error + 'static> { 540 impl From<Error> for anyhow::Error { implementation 555 impl AsRef<dyn core::error::Error> for Error { implementation 562 impl AsRef<dyn core::error::Error + Send + Sync> for Error { implementation 569 impl Error { impl [all …]
|
| H A D | macros.rs | 8 use super::{Error, OutOfMemory}; 263 impl AnyhowCtorTrait for &anyhow::Error {} implementation 269 pub fn construct(&self, anyhow_error: ::anyhow::Error) -> Error { in construct() argument 270 Error::from_anyhow(anyhow_error) in construct() 292 Error::new(error) in construct() 313 Error::msg(message) in construct() 338 Err(fmt::Error) in write_str() 344 impl Error { implementation 358 Error::msg(f.message) in from_format_args() 361 Some(oom) => Error::new(oom), in from_format_args() [all …]
|
| H A D | context.rs | 113 fn context<C>(self, context: C) -> Result<T, Error> in context() 121 fn with_context<C, F>(self, f: F) -> Result<T, Error> in with_context() 129 E: core::error::Error + Send + Sync + 'static, 150 Err(e) => Err(Error::new(e).context(f())), in with_context() 155 impl<T> Context<T, Error> for Result<T> { 156 fn context<C>(self, context: C) -> Result<T, Error> in context() 217 pub(crate) error: Option<Error>, 238 impl<C> core::error::Error for ContextError<C> 263 fn ext_source(&self) -> Option<&Error> { in ext_source() argument 290 fn ext_into_anyhow(mut self) -> anyhow::Error { in ext_into_anyhow() argument [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/src/sync/ |
| H A D | stdio.rs | 8 Error, ErrorExt, 49 Ok(n.try_into().map_err(|_| Error::range())?) in read_vectored() 55 ) -> Result<u64, Error> { in read_vectored_at() argument 56 Err(Error::seek_pipe()) in read_vectored_at() 59 Err(Error::seek_pipe()) in seek() 62 Err(Error::seek_pipe()) in peek() 68 ) -> Result<(), Error> { in set_times() argument 143 ) -> Result<u64, Error> { 144 Err(Error::seek_pipe()) 147 Err(Error::seek_pipe()) [all …]
|
| /wasmtime-44.0.1/pulley/src/ |
| H A D | decode.rs | 84 impl std::error::Error for DecodingError {} 100 type Error; typedef 103 fn unexpected_eof(&self) -> Self::Error; in unexpected_eof() argument 106 fn invalid_opcode(&self, code: u8) -> Self::Error; in invalid_opcode() argument 112 fn invalid_reg(&self, reg: u8) -> Self::Error; in invalid_reg() argument 160 type Error = DecodingError; typedef 162 fn unexpected_eof(&self) -> Self::Error { in unexpected_eof() argument 182 fn invalid_reg(&self, reg: u8) -> Self::Error { in invalid_reg() argument 237 type Error = Infallible; typedef 239 fn unexpected_eof(&self) -> Self::Error { in unexpected_eof() argument [all …]
|
| /wasmtime-44.0.1/crates/wasi-keyvalue/src/ |
| H A D | lib.rs | 76 "wasi:keyvalue/store.error" => crate::Error, 87 pub enum Error { enum 93 impl From<ResourceTableError> for Error { implementation 169 _ => Err(Error::NoSuchStore), in open() 173 fn convert_error(&mut self, err: Error) -> Result<keyvalue::store::Error> { in convert_error() argument 175 Error::NoSuchStore => Ok(keyvalue::store::Error::NoSuchStore), in convert_error() 176 Error::AccessDenied => Ok(keyvalue::store::Error::AccessDenied), in convert_error() 177 Error::Other(e) => Ok(keyvalue::store::Error::Other(e)), in convert_error() 209 ) -> Result<keyvalue::store::KeyResponse, Error> { in list_keys() argument 232 ) -> Result<u64, Error> { in increment() argument [all …]
|
| /wasmtime-44.0.1/cranelift/isle/isle/src/ |
| H A D | error.rs | 10 pub errors: Vec<Error>, 27 Error::ShadowedError { .. } => { in fmt() 33 Error::IoError { .. } => vec![], in fmt() 35 Error::ParseError { span, .. } in fmt() 36 | Error::TypeError { span, .. } in fmt() 37 | Error::UnreachableError { span, .. } in fmt() 85 pub enum Error { enum 89 error: std::io::Error, 160 errors: vec![Error::IoError { in from_io() 188 .map_err(|_| std::fmt::Error)?; in emit() [all …]
|
| /wasmtime-44.0.1/crates/core/tests/ |
| H A D | tests.rs | 29 impl core::error::Error for TestError {} 131 let error = Error::msg("uh oh!"); in msg() 174 let e = Error::msg("str"); in is() 207 let error = std::fmt::Error; in is_for_root_cause_with_initial_error_source() 209 let error = Error::new(error); in is_for_root_cause_with_initial_error_source() 489 let e = Error::msg("str"); in downcast_ref() 522 let mut e = Error::msg("str"); in downcast_mut() 707 let error = Error::new(error) in fmt_debug_alternate() 941 let e: Error = Error::from_anyhow(e); in anyhow_source_downcast() 981 let e: Error = Error::from_anyhow(e); in anyhow_wasmtime_anyhow_sandwich_chain() [all …]
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | small-anonymous.rs | 198 pub enum Error { enum 204 impl Error { impl 213 Error::Success => "", in message() 214 Error::Failure => "", in message() 218 impl core::fmt::Debug for Error { implementation 227 impl core::fmt::Display for Error { implementation 232 impl core::error::Error for Error {} implementation 290 pub enum Error { enum 296 impl Error { implementation 330 impl core::error::Error for Error {} implementation [all …]
|
| H A D | small-anonymous_concurrent.rs | 198 pub enum Error { enum 204 impl Error { impl 213 Error::Success => "", in message() 214 Error::Failure => "", in message() 218 impl core::fmt::Debug for Error { implementation 227 impl core::fmt::Display for Error { implementation 232 impl core::error::Error for Error {} implementation 243 Error, in option_test() argument 287 pub enum Error { enum 293 impl Error { implementation [all …]
|
| H A D | small-anonymous_async.rs | 198 pub enum Error { enum 204 impl Error { impl 213 Error::Success => "", in message() 214 Error::Failure => "", in message() 218 impl core::fmt::Debug for Error { implementation 232 impl core::error::Error for Error {} implementation 248 Error, in option_test() argument 258 Error, in option_test() argument 302 pub enum Error { enum 308 impl Error { impl [all …]
|
| H A D | small-anonymous_tracing_async.rs | 198 pub enum Error { enum 204 impl Error { implementation 213 Error::Success => "", in message() 214 Error::Failure => "", in message() 218 impl core::fmt::Debug for Error { implementation 232 impl core::error::Error for Error {} implementation 248 Error, in option_test() argument 258 Error, in option_test() argument 315 pub enum Error { enum 321 impl Error { implementation [all …]
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | p0.rs | 6 use crate::p0::types::Error; 81 ) -> Result<(), Error> { in args_get() argument 99 ) -> Result<(), Error> { in environ_get() argument 138 ) -> Result<(), Error> { in fd_advise() argument 149 ) -> Result<(), Error> { in fd_allocate() argument 556 ) -> wasmtime::Error { in proc_exit() argument 591 Err(Error::trap(wasmtime::Error::msg("sock_recv unsupported"))) in sock_recv() 601 Err(Error::trap(wasmtime::Error::msg("sock_send unsupported"))) in sock_send() 610 Err(Error::trap(wasmtime::Error::msg( in sock_shutdown() 635 impl From<snapshot1_types::Error> for Error { implementation [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/src/snapshots/ |
| H A D | preview_0.rs | 20 use types::Error; 22 impl ErrorExt for Error { implementation 79 impl From<snapshot1_types::Error> for Error { implementation 80 fn from(error: snapshot1_types::Error) -> Error { in from() argument 392 ) -> Result<(), Error> { in args_get() argument 410 ) -> Result<(), Error> { in environ_get() argument 449 ) -> Result<(), Error> { in fd_advise() argument 460 ) -> Result<(), Error> { in fd_allocate() argument 474 ) -> Result<(), Error> { in fd_datasync() argument 494 ) -> Result<(), Error> { in fd_fdstat_set_flags() argument [all …]
|
| H A D | preview_1.rs | 22 use error::{Error, ErrorExt}; 50 ) -> Result<(), Error> { in args_get() argument 66 ) -> Result<(), Error> { in environ_get() argument 126 ) -> Result<(), Error> { in fd_advise() argument 141 ) -> Result<(), Error> { in fd_allocate() argument 157 ) -> Result<(), Error> { in fd_close() argument 181 ) -> Result<(), Error> { in fd_datasync() argument 220 ) -> Result<(), Error> { in fd_fdstat_set_flags() argument 241 ) -> Result<(), Error> { in fd_fdstat_set_rights() argument 278 ) -> Result<(), Error> { in fd_filestat_set_size() argument [all …]
|
| /wasmtime-44.0.1/crates/wasi-tls/src/providers/ |
| H A D | rustls.rs | 3 use crate::{BoxFutureTlsStream, Error, TlsProvider, TlsStream, TlsTransport}; 19 ServerName::try_from(server_name).map_err(|_| Error::msg("invalid server name"))?; in connect() 48 impl From<rustls::Error> for Error { implementation 49 fn from(e: rustls::Error) -> Self { in from() 50 Error::msg(e.to_string()) in from() 54 fn rustls_to_wasi_error(e: std::io::Error) -> Error { in rustls_to_wasi_error() argument 55 match e.downcast::<rustls::Error>() { in rustls_to_wasi_error() 57 Err(io_err) => Error::msg(io_err), in rustls_to_wasi_error()
|
| /wasmtime-44.0.1/crates/wasi-common/src/sync/sched/ |
| H A D | windows.rs | 12 use crate::{EnvError, Error, ErrorExt, file::WasiFile, sched::Poll}; 18 pub async fn poll_oneoff<'a>(poll: &mut Poll<'a>) -> Result<(), Error> { in poll_oneoff() argument 25 ) -> Result<(), Error> { in poll_oneoff_() argument 82 PollState::Error(ref e) => { in poll_oneoff_() 89 let ioerror = std::io::Error::from(ekind); in poll_oneoff_() 131 Error(std::io::Error), enumerator 162 fn poll(&self, wait_mode: WaitMode) -> Result<PollState, Error> { in poll() argument 167 return Err(Error::trap(EnvError::msg( in poll() 176 .map_err(|_| Error::trap(EnvError::msg("request_tx channel closed")))?; in poll() 194 Err(TryRecvError::Disconnected) => Err(Error::trap(EnvError::msg( in poll() [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/src/tokio/ |
| H A D | file.rs | 3 Error, 106 async fn datasync(&self) -> Result<(), Error> { 109 async fn sync(&self) -> Result<(), Error> { 115 async fn get_fdflags(&self) -> Result<FdFlags, Error> { 133 ) -> Result<u64, Error> { 140 ) -> Result<u64, Error> { 150 ) -> Result<u64, Error> { 166 ) -> Result<(), Error> { 169 fn num_ready_bytes(&self) -> Result<u64, Error> { 177 async fn readable(&self) -> Result<(), Error> { [all …]
|
| H A D | dir.rs | 3 Error, ErrorExt, 31 ) -> Result<crate::dir::OpenResult, Error> { in open_file() argument 46 async fn create_dir(&self, path: &str) -> Result<(), Error> { in create_dir() argument 52 ) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + Send>, Error> { in readdir() argument 55 type Item = Result<ReaddirEntity, Error>; in readdir() 68 async fn remove_dir(&self, path: &str) -> Result<(), Error> { in remove_dir() argument 78 async fn get_filestat(&self) -> Result<Filestat, Error> { in get_filestat() argument 85 ) -> Result<Filestat, Error> { in get_path_filestat() argument 93 ) -> Result<(), Error> { in rename() argument 107 ) -> Result<(), Error> { in hard_link() argument [all …]
|
| /wasmtime-44.0.1/crates/fuzzing/tests/oom/ |
| H A D | error.rs | 5 use wasmtime::{Error, Result, error::OutOfMemory, format_err}; 8 fn ok_if_not_oom(error: Error) -> Result<()> { in ok_if_not_oom() 19 let error = Error::new(u8::try_from(u32::MAX).unwrap_err()); in error_new() 27 let error = Error::msg("ouch"); in error_msg() 46 let error = Error::msg("hello"); in error_context() 55 let error = Error::msg("hello"); in error_chain() 74 let error = Error::msg("hello"); in display_fmt_error() 84 let error = Error::msg("hello"); in alternate_display_fmt_error() 94 let error = Error::msg("hello"); in debug_fmt_error() 104 let error = Error::msg("hello"); in alternate_debug_fmt_error()
|