Searched refs:ProtobufError (Results 1 – 11 of 11) sorted by relevance
/external/rust/crates/protobuf/src/ |
D | error.rs | 11 pub type ProtobufResult<T> = Result<T, ProtobufError>; 58 pub enum ProtobufError { enum 72 impl ProtobufError { implementation 75 pub fn message_not_initialized(message: &'static str) -> ProtobufError { in message_not_initialized() argument 76 ProtobufError::MessageNotInitialized { message: message } in message_not_initialized() 80 impl fmt::Display for ProtobufError { implementation 84 &ProtobufError::IoError(ref e) => write!(f, "IO error: {}", e), in fmt() 85 &ProtobufError::WireError(ref e) => fmt::Display::fmt(e, f), in fmt() 86 &ProtobufError::Utf8(ref e) => write!(f, "{}", e), in fmt() 87 &ProtobufError::MessageNotInitialized { .. } => write!(f, "not all message fields set"), in fmt() [all …]
|
D | buf_read_iter.rs | 19 use crate::ProtobufError; 150 None => return Err(ProtobufError::WireError(WireError::Other)), in push_limit() 154 return Err(ProtobufError::WireError(WireError::Other)); in push_limit() 214 return Err(ProtobufError::WireError(WireError::UnexpectedEof)); in read_byte() 248 return Err(ProtobufError::WireError(WireError::TruncatedMessage)); in read_exact_to_vec() 269 return Err(ProtobufError::WireError(WireError::TruncatedMessage)); in read_exact_to_vec() 291 None => return Err(ProtobufError::WireError(WireError::UnexpectedEof)), in read_exact_bytes() 295 return Err(ProtobufError::WireError(WireError::UnexpectedEof)); in read_exact_bytes() 347 return Err(ProtobufError::WireError(WireError::UnexpectedEof)); in read_exact() 366 return Err(ProtobufError::WireError(WireError::UnexpectedEof)); in read_exact()
|
D | coded_input_stream.rs | 18 use crate::error::ProtobufError; 86 return Err(ProtobufError::WireError(WireError::OverRecursionLimit)); in incr_recursion() 153 return Err(ProtobufError::WireError(WireError::UnexpectedEof)); in check_eof() 163 return Err(ProtobufError::WireError(WireError::IncorrectVarint)); in read_raw_varint64_slow() 204 return Err(ProtobufError::WireError( in read_raw_varint64() 277 None => Err(ProtobufError::WireError(WireError::IncorrectTag(v))), in read_tag() 359 None => Err(ProtobufError::WireError(WireError::InvalidEnumValue(i))), in read_enum() 585 _ => Err(ProtobufError::WireError(WireError::UnexpectedWireType( in read_unknown() 609 return Err(ProtobufError::WireError(WireError::TruncatedMessage)); in read_raw_bytes_into() 623 return Err(ProtobufError::WireError(WireError::TruncatedMessage)); in read_raw_bytes_into() [all …]
|
D | message.rs | 16 use crate::error::ProtobufError; 138 Err(ProtobufError::message_not_initialized( in check_initialized()
|
D | lib.rs | 20 pub use crate::error::ProtobufError;
|
D | rt.rs | 16 use crate::error::ProtobufError; 833 pub fn unexpected_wire_type(wire_type: WireType) -> ProtobufError { in unexpected_wire_type() argument 834 ProtobufError::WireError(WireError::UnexpectedWireType(wire_type)) in unexpected_wire_type()
|
/external/rust/crates/grpcio/src/ |
D | error.rs | 11 use protobuf::ProtobufError; 60 impl From<ProtobufError> for Error { 61 fn from(e: ProtobufError) -> Error { in from() 81 use protobuf::ProtobufError; 87 let error = ProtobufError::WireError(WireError::UnexpectedEof); in test_convert()
|
/external/crosvm/power_monitor/src/powerd/ |
D | mod.rs | 14 use protobuf::error::ProtobufError; 77 ConvertProtobuf(ProtobufError),
|
/external/crosvm/src/plugin/ |
D | mod.rs | 25 use protobuf::ProtobufError; 64 DecodeRequest(ProtobufError), 66 EncodeResponse(ProtobufError), 249 fn proto_to_sys_err(e: ProtobufError) -> SysError { in proto_to_sys_err() 251 ProtobufError::IoError(e) => SysError::new(e.raw_os_error().unwrap_or(EINVAL)), in proto_to_sys_err()
|
/external/crosvm/disk/src/ |
D | composite.rs | 25 InvalidProto(protobuf::ProtobufError),
|
/external/crosvm/crosvm_plugin/src/ |
D | lib.rs | 134 fn proto_error_to_int(e: protobuf::ProtobufError) -> c_int { in proto_error_to_int() 136 protobuf::ProtobufError::IoError(e) => e.raw_os_error().unwrap_or(EINVAL), in proto_error_to_int()
|