Home
last modified time | relevance | path

Searched defs:ErrorCode (Results 1 – 25 of 45) sorted by relevance

12

/wasmtime-44.0.1/crates/wasi/src/sockets/
H A Dtcp.rs160 ) -> Result<Self, ErrorCode> { in new() argument
277 pub(crate) fn finish_bind(&mut self) -> Result<(), ErrorCode> { in finish_bind() argument
294 ) -> Result<tokio::net::TcpSocket, ErrorCode> { in start_connect() argument
324 ) -> Result<(), ErrorCode> { in set_pending_connect() argument
367 ) -> Result<(), ErrorCode> { in finish_connect() argument
411 pub(crate) fn listen_p3(&mut self) -> Result<(), ErrorCode> { in listen_p3() argument
611 pub(crate) fn keep_alive_count(&self) -> Result<u32, ErrorCode> { in keep_alive_count() argument
623 pub(crate) fn hop_limit(&self) -> Result<u8, ErrorCode> { in hop_limit() argument
653 pub(crate) fn send_buffer_size(&self) -> Result<u64, ErrorCode> { in send_buffer_size() argument
694 ) -> Result<Arc<tokio::net::TcpStream>, ErrorCode> { in take_stream() argument
[all …]
H A Dudp.rs92 pub(crate) fn bind(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in bind() argument
104 pub(crate) fn finish_bind(&mut self) -> Result<(), ErrorCode> { in finish_bind() argument
122 pub(crate) fn disconnect(&mut self) -> Result<(), ErrorCode> { in disconnect() argument
132 pub(crate) fn connect_p2(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in connect_p2() argument
152 fn connect_common(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in connect_common() argument
268 pub(crate) fn local_address(&self) -> Result<SocketAddr, ErrorCode> { in local_address() argument
279 pub(crate) fn remote_address(&self) -> Result<SocketAddr, ErrorCode> { in remote_address() argument
294 pub(crate) fn unicast_hop_limit(&self) -> Result<u8, ErrorCode> { in unicast_hop_limit() argument
304 pub(crate) fn receive_buffer_size(&self) -> Result<u64, ErrorCode> { in receive_buffer_size() argument
314 pub(crate) fn send_buffer_size(&self) -> Result<u64, ErrorCode> { in send_buffer_size() argument
[all …]
H A Dutil.rs15 pub enum ErrorCode { enum
34 impl fmt::Display for ErrorCode { implementation
40 impl std::error::Error for ErrorCode {} implementation
114 impl From<std::io::Error> for ErrorCode { implementation
120 impl From<&std::io::Error> for ErrorCode { implementation
147 impl From<Errno> for ErrorCode { implementation
153 impl From<&Errno> for ErrorCode { implementation
196 pub fn get_ip_ttl(fd: impl AsFd) -> Result<u8, ErrorCode> { in get_ip_ttl() argument
220 ) -> Result<(), ErrorCode> { in set_unicast_hop_limit() argument
339 ) -> Result<(), ErrorCode> { in tcp_bind() argument
[all …]
/wasmtime-44.0.1/crates/wasi/src/
H A Dfilesystem.rs182 pub(crate) enum ErrorCode { enum
442 impl From<std::io::Error> for ErrorCode { implementation
443 fn from(err: std::io::Error) -> ErrorCode { in from()
567 ) -> Result<(), ErrorCode> { in set_times() argument
751 ) -> Result<(), ErrorCode> { in advise() argument
854 ) -> Result<DescriptorStat, ErrorCode> { in stat_at() argument
874 ) -> Result<(), ErrorCode> { in set_times_at() argument
908 ) -> Result<(), ErrorCode> { in link_at() argument
931 ) -> Result<Descriptor, ErrorCode> { in open_at() argument
1094 ) -> Result<(), ErrorCode> { in rename_at() argument
[all …]
/wasmtime-44.0.1/crates/wasi-http/src/p2/
H A Derror.rs26 pub fn downcast(self) -> wasmtime::Result<ErrorCode> { in downcast()
31 pub fn downcast_ref(&self) -> Option<&ErrorCode> { in downcast_ref()
138 pub(crate) fn dns_error(rcode: String, info_code: u16) -> ErrorCode { in dns_error()
145 pub(crate) fn internal_error(msg: String) -> ErrorCode { in internal_error()
150 pub fn http_request_error(err: http::Error) -> ErrorCode { in http_request_error()
161 pub fn hyper_request_error(err: hyper::Error) -> ErrorCode { in hyper_request_error()
175 pub fn hyper_response_error(err: hyper::Error) -> ErrorCode { in hyper_response_error()
192 impl From<hyper::Error> for ErrorCode { implementation
/wasmtime-44.0.1/crates/test-programs/src/
H A Dsockets.rs25 pub fn block_until(&self, timeout: &Pollable) -> Result<(), ErrorCode> { in block_until() argument
110 ) -> Result<Vec<IpAddress>, ErrorCode> { in permissive_blocking_resolve_addresses() argument
119 pub fn new(address_family: IpAddressFamily) -> Result<TcpSocket, ErrorCode> { in new() argument
127 ) -> Result<(), ErrorCode> { in blocking_bind() argument
141 pub fn blocking_listen(&self) -> Result<(), ErrorCode> { in blocking_listen() argument
159 ) -> Result<(InputStream, OutputStream), ErrorCode> { in blocking_connect() argument
187 pub fn new(address_family: IpAddressFamily) -> Result<UdpSocket, ErrorCode> { in new() argument
195 ) -> Result<(), ErrorCode> { in blocking_bind() argument
209 pub fn blocking_bind_unspecified(&self, network: &Network) -> Result<(), ErrorCode> { in blocking_bind_unspecified() argument
218 fn blocking_check_send(&self, timeout: &Pollable) -> Result<u64, ErrorCode> { in blocking_check_send() argument
[all …]
/wasmtime-44.0.1/examples/min-platform/embedding/src/
H A Dwasi.rs664 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in advise()
670 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in sync_data()
691 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in set_size()
699 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in set_times()
725 wasi::filesystem::types::ErrorCode, in read_directory()
733 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in sync()
740 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in create_directory_at()
766 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in set_times_at()
776 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in link_at()
802 ) -> Result<Result<(), wasi::filesystem::types::ErrorCode>> { in remove_directory_at()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dnetwork.rs14 fn convert_error_code(&mut self, error: SocketError) -> wasmtime::Result<ErrorCode> { in convert_error_code()
18 fn network_error_code(&mut self, err: Resource<Error>) -> wasmtime::Result<Option<ErrorCode>> { in network_error_code()
37 impl From<io::Error> for ErrorCode { implementation
43 impl From<&io::Error> for ErrorCode { implementation
73 impl From<Errno> for ErrorCode { implementation
79 impl From<&Errno> for ErrorCode { implementation
H A Dfilesystem.rs29 ) -> wasmtime::Result<Option<ErrorCode>> { in filesystem_error_code()
695 impl From<std::io::Error> for ErrorCode { implementation
696 fn from(err: std::io::Error) -> ErrorCode { in from()
701 impl<'a> From<&'a std::io::Error> for ErrorCode { implementation
702 fn from(err: &'a std::io::Error) -> ErrorCode { in from()
719 impl From<cap_rand::Error> for ErrorCode { implementation
720 fn from(err: cap_rand::Error) -> ErrorCode { in from()
726 impl From<std::num::TryFromIntError> for ErrorCode { implementation
727 fn from(_err: std::num::TryFromIntError) -> ErrorCode { in from()
770 impl From<crate::clocks::DatetimeError> for ErrorCode { implementation
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp2_ip_name_lookup.rs76 fn resolve(name: &str) -> Result<Vec<IpAddress>, ErrorCode> { in resolve() argument
80 fn resolve_one(name: &str) -> Result<IpAddress, ErrorCode> { in resolve_one() argument
H A Dp2_cli_no_ip_name_lookup.rs13 fn resolve(name: &str) -> Result<Vec<IpAddress>, ErrorCode> { in resolve() argument
H A Dp3_cli_serve_sleep.rs10 async fn handle(_request: Request) -> Result<Response, ErrorCode> { in handle() argument
H A Dp3_cli_serve_hello_world.rs9 async fn handle(_request: Request) -> Result<Response, ErrorCode> { in handle() argument
H A Dp3_http_middleware_with_chain.rs50 async fn handle(request: Request) -> Result<Response, ErrorCode> { in handle() argument
H A Dp3_http_echo.rs16 async fn handle(request: Request) -> Result<Response, ErrorCode> { in handle() argument
/wasmtime-44.0.1/crates/wasi/src/p3/sockets/
H A Dconv.rs143 impl From<std::io::Error> for types::ErrorCode { implementation
149 impl From<&std::io::Error> for types::ErrorCode { implementation
176 impl From<Errno> for types::ErrorCode { implementation
182 impl From<&Errno> for types::ErrorCode { implementation
225 impl From<crate::sockets::util::ErrorCode> for types::ErrorCode { implementation
/wasmtime-44.0.1/crates/wasi-http/src/p3/
H A Dresponse.rs49 ) -> wasmtime::Result<http::Response<UnsyncBoxBody<Bytes, ErrorCode>>> { in into_http() argument
60 ) -> wasmtime::Result<http::Response<UnsyncBoxBody<Bytes, ErrorCode>>> { in into_http_with_getter() argument
101 T::Error: Into<ErrorCode>, in from_http()
H A Dconv.rs6 impl From<Infallible> for ErrorCode { implementation
12 impl ErrorCode { implementation
H A Dmod.rs110 request: http::Request<UnsyncBoxBody<Bytes, ErrorCode>>, in send_request() argument
152 request: http::Request<UnsyncBoxBody<Bytes, ErrorCode>>, in send_request() argument
H A Drequest.rs60 body: impl Into<UnsyncBoxBody<Bytes, ErrorCode>>, in new() argument
100 T::Error: Into<ErrorCode>, in from_http()
136 fut: impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in into_http() argument
148 fut: impl Future<Output = Result<(), ErrorCode>> + Send + 'static, in into_http_with_getter() argument
263 mut req: http::Request<impl http_body::Body<Data = Bytes, Error = ErrorCode> + Send + 'static>, in default_send_request() argument
288 fn dns_error(rcode: String, info_code: u16) -> ErrorCode { in default_send_request()
H A Dproxy.rs13 ) -> wasmtime::Result<Result<Response, ErrorCode>> { in handle() argument
/wasmtime-44.0.1/crates/wasi-http/src/p3/host/
H A Dhandler.rs28 oneshot::Receiver<Result<(), ErrorCode>>, in io_task_result() argument
/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dmod.rs71 impl<'a> From<&'a std::io::Error> for types::ErrorCode { implementation
77 impl From<std::io::Error> for types::ErrorCode { implementation
89 impl From<crate::filesystem::ErrorCode> for types::ErrorCode { implementation
H A Dhost.rs99 fn systemtime_from(t: system_clock::Instant) -> Result<std::time::SystemTime, ErrorCode> { in systemtime_from() argument
140 fn close(&mut self, res: Result<(), ErrorCode>) { in close() argument
238 ) -> Result<Option<DirectoryEntry>, ErrorCode> { in map_dir_entry() argument
278 result: oneshot::Sender<Result<(), ErrorCode>>, in new() argument
298 fn close(&mut self, res: Result<(), ErrorCode>) { in close() argument
396 fn close(&mut self, res: Result<(), ErrorCode>) { in close() argument
491 fn convert_error_code(&mut self, error: FilesystemError) -> wasmtime::Result<ErrorCode> { in convert_error_code()
501 ) -> wasmtime::Result<(StreamReader<u8>, FutureReader<Result<(), ErrorCode>>)> { in read_via_stream() argument
533 ) -> wasmtime::Result<FutureReader<Result<(), ErrorCode>>> { in write_via_stream() argument
560 ) -> wasmtime::Result<FutureReader<Result<(), ErrorCode>>> { in append_via_stream() argument
[all …]
/wasmtime-44.0.1/crates/wasi/src/p3/cli/
H A Dhost.rs27 fn io_error_to_error_code(err: io::Error) -> ErrorCode { in io_error_to_error_code()
197 ) -> wasmtime::Result<(StreamReader<u8>, FutureReader<Result<(), ErrorCode>>)> { in read_via_stream() argument
223 ) -> wasmtime::Result<FutureReader<Result<(), ErrorCode>>> { in write_via_stream() argument
248 ) -> wasmtime::Result<FutureReader<Result<(), ErrorCode>>> { in write_via_stream() argument

12