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)MessageNotInitializedFields of MessageNotInitialized
message: &'static str |
Methods
impl ProtobufError[src]
impl ProtobufErrorpub fn message_not_initialized(message: &'static str) -> ProtobufError[src]
pub fn message_not_initialized(message: &'static str) -> ProtobufErrorTrait Implementations
impl Debug for ProtobufError[src]
impl Debug for ProtobufErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ProtobufError[src]
impl Display for ProtobufErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for ProtobufError[src]
impl Error for ProtobufErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 ProtobufErrorimpl From<Utf8Error> for ProtobufError[src]
impl From<Utf8Error> for ProtobufErrorimpl From<ProtobufError> for Error[src]
impl From<ProtobufError> for Errorfn from(err: ProtobufError) -> Self[src]
fn from(err: ProtobufError) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ProtobufError
impl Send for ProtobufErrorimpl Sync for ProtobufError
impl Sync for ProtobufError