Enum protobuf::error::ProtobufError [−][src]
pub enum ProtobufError { IoError(Error), WireError(WireError), Utf8(Utf8Error), MessageNotInitialized { message: &'static str, }, }
Variants
IoError(Error)
WireError(WireError)
Utf8(Utf8Error)
MessageNotInitialized
Fields of MessageNotInitialized
message: &'static str |
Methods
impl ProtobufError
[src]
impl ProtobufError
pub fn message_not_initialized(message: &'static str) -> ProtobufError
[src]
pub fn message_not_initialized(message: &'static str) -> ProtobufError
Trait Implementations
impl Debug for ProtobufError
[src]
impl Debug for ProtobufError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ProtobufError
[src]
impl Display for ProtobufError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ProtobufError
[src]
impl Error for ProtobufError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ProtobufError
[src]
impl From<Error> for ProtobufError
impl From<Utf8Error> for ProtobufError
[src]
impl From<Utf8Error> for ProtobufError
impl From<ProtobufError> for Error
[src]
impl From<ProtobufError> for Error
fn from(err: ProtobufError) -> Self
[src]
fn from(err: ProtobufError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ProtobufError
impl Send for ProtobufError
impl Sync for ProtobufError
impl Sync for ProtobufError