Home
last modified time | relevance | path

Searched +full:write +full:- +full:error (Results 1 – 25 of 1817) sorted by relevance

12345678910>>...73

/aosp_15_r20/prebuilts/go/linux-x86/test/
Dwritebarrier.go1 // errorcheck -0 -l -d=wb
4 // Use of this source code is governed by a BSD-style
7 // Test where write barriers are and are not emitted.
17 *x = z // ERROR "write barrier"
24 *x = z // ERROR "write barrier"
28 *x = *y // ERROR "write barrier"
31 *x = z // ERROR "write barrier"
38 *x = z // ERROR "write barrier"
45 *x = z // ERROR "write barrier"
52 *x = z // ERROR "write barrier"
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/serde_cbor/src/
Dwrite.rs8 use crate::error;
13 /// This trait is similar to the [`Write`]() trait in the standard library,
16 /// Any object implementing `std::io::Write`
17 /// can be wrapped in an [`IoWrite`](../write/struct.IoWrite.html) that implements
19 pub trait Write: private::Sealed { trait
20 /// The type of error returned when a write operation fails.
22 type Error: Into<error::Error>; typedef
24 /// Attempts to write an entire buffer into this write.
26 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>; in write_all() argument
32 /// This trait is similar to the [`Write`]() trait in the standard library,
[all …]
/aosp_15_r20/external/crosvm/disk/src/qcow/
H A Dmod.rs2 // Use of this source code is governed by a BSD-style license that can be
16 use std::io::Write;
21 use base::error;
39 use thiserror::Error;
56 #[derive(Error, Debug)]
57 pub enum Error { enum
58 #[error("backing file io error: {0}")]
59 BackingFileIo(io::Error),
60 #[error("backing file open error: {0}")]
61 BackingFileOpen(Box<crate::Error>),
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.2/src/error/
H A Dformat.rs3 #![cfg_attr(not(feature = "error-context"), allow(dead_code))]
4 #![cfg_attr(not(feature = "error-context"), allow(unused_imports))]
9 #[cfg(feature = "error-context")]
10 use crate::error::ContextKind;
11 #[cfg(feature = "error-context")]
12 use crate::error::ContextValue;
13 use crate::error::ErrorKind;
16 /// Defines how to format an error for displaying to the user
18 /// Stylize the error for the terminal
19 fn format_error(error: &crate::error::Error<Self>) -> StyledStr; in format_error()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/clap_builder/src/error/
Dformat.rs3 #![cfg_attr(not(feature = "error-context"), allow(dead_code))]
4 #![cfg_attr(not(feature = "error-context"), allow(unused_imports))]
9 #[cfg(feature = "error-context")]
10 use crate::error::ContextKind;
11 #[cfg(feature = "error-context")]
12 use crate::error::ContextValue;
13 use crate::error::ErrorKind;
16 /// Defines how to format an error for displaying to the user
18 /// Stylize the error for the terminal
19 fn format_error(error: &crate::error::Error<Self>) -> StyledStr; in format_error()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/der/src/
Derror.rs1 //! Error types.
15 pub type Result<T> = core::result::Result<T, Error>;
17 /// Error type.
19 pub struct Error { struct
20 /// Kind of error.
23 /// Position inside of message where error occurred.
27 impl Error { implementation
28 /// Create a new [`Error`].
29 pub fn new(kind: ErrorKind, position: Length) -> Error { in new() argument
30 Error { in new()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/etherparse/src/err/
Dlayer.rs1 /// Layers on which an error can occur.
4 /// Error occurred in the Linux Cooked Capture v1 (SLL) header.
6 /// Error occurred in the ethernet 2 header.
10 /// Error occurred in the vlan header.
12 /// Error occurred when decoding an IP header (v4 or v6).
14 /// Error occurred in the IPv4 layer.
16 /// Error occurred verifying the total length of an IPv4 packet.
18 /// Error occurred in the IP Authentication header.
20 /// Error occurred in the IPv6 layer.
22 /// Error occurred verifying the payload length of an IPv6 packet.
[all …]
/aosp_15_r20/external/libxml2/example/
H A DtestWriter.c5 * the various methods to write to a filename, to a memory
26 #define MY_ENCODING "ISO-8859-1"
74 printf("testXmlwriterFilename: Error creating the xml writer\n"); in testXmlwriterFilename()
79 * encoding ISO 8859-1 and the default for the standalone in testXmlwriterFilename()
84 ("testXmlwriterFilename: Error at xmlTextWriterStartDocument\n"); in testXmlwriterFilename()
93 ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); in testXmlwriterFilename()
100 ("testXmlwriterFilename: Error at xmlTextWriterWriteComment\n"); in testXmlwriterFilename()
108 ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); in testXmlwriterFilename()
117 ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); in testXmlwriterFilename()
126 ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); in testXmlwriterFilename()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/
Dwrite.hpp2 // write.hpp
5 // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
22 #include <boost/asio/error.hpp>
34 * @defgroup write boost::asio::write
36 * @brief The @c write function is a composed operation that writes a certain
41 /// Write all of the supplied data to a stream before returning.
43 * This function is used to write a certain number of bytes of data to a stream.
49 * @li An error occurred.
58 * of the buffer sizes indicates the maximum number of bytes to write to the
66 * To write a single data buffer use the @ref buffer function as follows:
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/serde_json/src/
Dser.rs3 use crate::error::{Error, ErrorCode, Result};
20 W: io::Write,
24 pub fn new(writer: W) -> Self { in new()
31 W: io::Write,
35 pub fn pretty(writer: W) -> Self { in pretty()
42 W: io::Write,
48 pub fn with_formatter(writer: W, formatter: F) -> Self { in with_formatter()
54 pub fn into_inner(self) -> W { in into_inner()
61 W: io::Write,
65 type Error = Error; typedef
[all …]
/aosp_15_r20/external/sg3_utils/lib/
H A Dsg_lib_data.c2 * Copyright (c) 2007-2022 Douglas Gilbert.
4 * Use of this source code is governed by a BSD-style
7 * SPDX-License-Identifier: BSD-2-Clause
44 {0x14, "Intermediate-Condition Met (obsolete)"},
67 {0xa, PDT_DISK_ZBC, "Write(6)"}, /* obsolete in sbc3r30 */
74 {0x10, PDT_TAPE, "Write filemarks(6)"},
81 {0x16, PDT_ALL, "Reserve(6)"}, /* obsolete in SPC-4 r11 */
83 {0x17, PDT_ALL, "Release(6)"}, /* obsolete in SPC-4 r11 */
85 {0x18, PDT_ALL, "Copy"}, /* obsolete in SPC-4 r11 */
102 {0x2a, PDT_ALL, "Write(10)"}, /* sbc3r31 recommends Write(16) */
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/fend-core-1.4.6/src/
H A Derror.rs1 use std::{error, fmt, io};
19 Wrap(Box<dyn error::Error + Send + Sync + 'static>),
70 FormattingError(fmt::Error),
71 IoError(io::Error),
103 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
105 Self::Interrupted => write!(f, "interrupted"), in fmt()
106 Self::ParseError(e) => write!(f, "{e}"), in fmt()
108 write!(f, "factorial is only supported for unitless numbers") in fmt()
110 Self::DeserializationError => write!(f, "failed to deserialize object"), in fmt()
111 Self::ModuloUnitless => write!(f, "modulo is only supported for unitless numbers"), in fmt()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/serde_json-1.0.115/src/
H A Dser.rs3 use crate::error::{Error, ErrorCode, Result};
20 W: io::Write,
24 pub fn new(writer: W) -> Self { in new()
31 W: io::Write,
35 pub fn pretty(writer: W) -> Self { in pretty()
42 W: io::Write,
48 pub fn with_formatter(writer: W, formatter: F) -> Self { in with_formatter()
54 pub fn into_inner(self) -> W { in into_inner()
61 W: io::Write,
65 type Error = Error; typedef
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/serde_json_lenient-0.2.1/src/
H A Dser.rs3 use crate::error::{Error, ErrorCode, Result};
20 W: io::Write,
24 pub fn new(writer: W) -> Self { in new()
31 W: io::Write,
35 pub fn pretty(writer: W) -> Self { in pretty()
42 W: io::Write,
48 pub fn with_formatter(writer: W, formatter: F) -> Self { in with_formatter()
54 pub fn into_inner(self) -> W { in into_inner()
61 W: io::Write,
65 type Error = Error; typedef
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/tungstenite/src/protocol/
Dmod.rs16 use crate::error::{Error, ProtocolError, Result};
19 io::{self, Read, Write},
38 /// The target minimum size of the write buffer to reach before writing the data
45 /// Note: [`flush`](WebSocket::flush) will always fully write the buffer regardless.
47 /// The max size of the write buffer in bytes. Setting this can provide backpressure
48 /// in the case the write buffer is filling up due to write errors.
51 /// Note: The write buffer only builds up past [`write_buffer_size`](Self::write_buffer_size)
52 /// when writes to the underlying stream are failing. So the **write buffer can not
53 /// fill up if you are not observing write errors even if not flushing**.
56 /// and probably a little more depending on error handling strategy.
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rusqlite/src/
Derror.rs4 use std::error;
14 pub enum Error { enum
15 /// An error from an underlying SQLite call.
16 SqliteFailure(ffi::Error, Option<String>),
18 /// Error reported when attempting to open a connection when SQLite was
19 /// configured to allow single-threaded use only.
22 /// Error when the value of a particular column is requested, but it cannot
24 FromSqlConversionFailure(usize, Type, Box<dyn error::Error + Send + Sync + 'static>),
26 /// Error when SQLite gives us an integral value outside the range of the
32 /// Error converting a string to UTF-8.
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/net/
Dnet.go2 // Use of this source code is governed by a BSD-style
9 Although the package provides access to low-level networking
19 // handle error
29 // handle error
34 // handle error
46 listed in /etc/resolv.conf, or it can use a cgo-based resolver that calls C
51 When cgo is available, the cgo-based resolver is used instead under a variety of
54 when the RES_OPTIONS or HOSTALIASES environment variable is non-empty,
55 when the ASR_CONFIG environment variable is non-empty (OpenBSD only),
84 -buildmode=c-archive, linking the resulting archive into a C program
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/fs-err/src/
Derrors.rs1 use std::error::Error as StdError;
18 Write, enumerator
40 /// Contains an IO error that has a file path attached.
43 /// another IO error.
45 pub(crate) struct Error { struct
47 source: io::Error, argument
51 impl Error { implementation
52 pub fn build(source: io::Error, kind: ErrorKind, path: impl Into<PathBuf>) -> io::Error { in build() argument
53 io::Error::new( in build()
64 impl fmt::Display for Error { implementation
[all …]
/aosp_15_r20/external/pigweed/pw_transfer/ts/
H A Dtransfer_test.ts7 // https://www.apache.org/licenses/LICENSE-2.0
15 /* eslint-env browser */
86 function enqueueServerError(method: MethodStub, error: Status): void {
93 packet.setStatus(error);
138 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true);
139 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK);
152 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true);
153 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK);
170 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true);
171 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK);
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/
H A Derror.rs1 #![doc = include_str!("../../core/src/error.md")]
8 use crate::fmt::{self, Write};
11 pub use core::error::Error;
13 pub use core::error::{request_ref, request_value, Request};
15 /// An error reporter that prints an error and its sources.
17 /// Report also exposes configuration options for formatting the error sources, either entirely on a
18 /// single line, or in multi-line format with each source on a new line.
20 /// `Report` only requires that the wrapped error implement `Error`. It doesn't require that the
21 /// wrapped error be `Send`, `Sync`, or `'static`.
27 /// use std::error::{Error, Report};
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/
H A Derror.rs1 #![doc = include_str!("../../core/src/error.md")]
8 use crate::fmt::{self, Write};
11 pub use core::error::Error;
13 pub use core::error::{request_ref, request_value, Request};
15 /// An error reporter that prints an error and its sources.
17 /// Report also exposes configuration options for formatting the error sources, either entirely on a
18 /// single line, or in multi-line format with each source on a new line.
20 /// `Report` only requires that the wrapped error implement `Error`. It doesn't require that the
21 /// wrapped error be `Send`, `Sync`, or `'static`.
27 /// use std::error::{Error, Report};
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/
H A Derror.rs1 #![doc = include_str!("../../core/src/error.md")]
8 use crate::fmt::{self, Write};
11 pub use core::error::Error;
13 pub use core::error::{request_ref, request_value, Request};
15 /// An error reporter that prints an error and its sources.
17 /// Report also exposes configuration options for formatting the error sources, either entirely on a
18 /// single line, or in multi-line format with each source on a new line.
20 /// `Report` only requires that the wrapped error implement `Error`. It doesn't require that the
21 /// wrapped error be `Send`, `Sync`, or `'static`.
27 /// use std::error::{Error, Report};
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/
H A Derror.rs1 #![doc = include_str!("../../core/src/error.md")]
8 use crate::fmt::{self, Write};
11 pub use core::error::Error;
13 pub use core::error::{request_ref, request_value, Request};
15 /// An error reporter that prints an error and its sources.
17 /// Report also exposes configuration options for formatting the error sources, either entirely on a
18 /// single line, or in multi-line format with each source on a new line.
20 /// `Report` only requires that the wrapped error implement `Error`. It doesn't require that the
21 /// wrapped error be `Send`, `Sync`, or `'static`.
27 /// use std::error::{Error, Report};
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/
H A Derror.rs1 #![doc = include_str!("../../core/src/error.md")]
8 use crate::fmt::{self, Write};
11 pub use core::error::Error;
13 pub use core::error::{request_ref, request_value, Request};
15 /// An error reporter that prints an error and its sources.
17 /// Report also exposes configuration options for formatting the error sources, either entirely on a
18 /// single line, or in multi-line format with each source on a new line.
20 /// `Report` only requires that the wrapped error implement `Error`. It doesn't require that the
21 /// wrapped error be `Send`, `Sync`, or `'static`.
27 /// use std::error::{Error, Report};
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/io/
Dio.go2 // Use of this source code is governed by a BSD-style
10 // Because these interfaces and primitives wrap lower-level operations with
27 // ErrShortWrite means that a write accepted fewer bytes than requested
28 // but failed to return an explicit error.
29 var ErrShortWrite = errors.New("short write")
31 // errInvalidWrite means that a write returned an impossible count.
32 var errInvalidWrite = errors.New("invalid write result")
37 // EOF is the error returned by Read when no more input is available.
38 // (Read must return EOF itself, not an error wrapping EOF,
42 // the appropriate error is either [ErrUnexpectedEOF] or some other error
[all …]

12345678910>>...73