Enum domain::base::wire::ParseError
source · pub enum ParseError {
ShortInput,
Form(FormError),
}
Expand description
An error happened while parsing data.
Variants§
ShortInput
An attempt was made to go beyond the end of the parser.
Form(FormError)
A formatting error occurred.
Implementations§
source§impl ParseError
impl ParseError
sourcepub fn form_error(msg: &'static str) -> Self
pub fn form_error(msg: &'static str) -> Self
Creates a new parse error as a form error with the given message.
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FormError> for ParseError
impl From<FormError> for ParseError
source§impl From<LongOptData> for ParseError
impl From<LongOptData> for ParseError
source§fn from(src: LongOptData) -> Self
fn from(src: LongOptData) -> Self
Converts to this type from the input type.
source§impl From<LongSvcParam> for ParseError
impl From<LongSvcParam> for ParseError
source§fn from(src: LongSvcParam) -> Self
fn from(src: LongSvcParam) -> Self
Converts to this type from the input type.
source§impl From<NameError> for ParseError
impl From<NameError> for ParseError
source§fn from(err: NameError) -> ParseError
fn from(err: NameError) -> ParseError
Converts to this type from the input type.
source§impl From<ParseError> for CopyRecordsError
impl From<ParseError> for CopyRecordsError
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(_: ParseError) -> Self
fn from(_: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for SrvError
impl From<ParseError> for SrvError
source§fn from(_: ParseError) -> SrvError
fn from(_: ParseError) -> SrvError
Converts to this type from the input type.
source§impl From<ParseError> for SvcParamsError
impl From<ParseError> for SvcParamsError
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<RtypeBitmapError> for ParseError
impl From<RtypeBitmapError> for ParseError
source§fn from(err: RtypeBitmapError) -> ParseError
fn from(err: RtypeBitmapError) -> ParseError
Converts to this type from the input type.
source§impl From<ShortInput> for ParseError
impl From<ShortInput> for ParseError
source§fn from(_: ShortInput) -> Self
fn from(_: ShortInput) -> Self
Converts to this type from the input type.
source§impl From<SplitLabelError> for ParseError
impl From<SplitLabelError> for ParseError
source§fn from(err: SplitLabelError) -> ParseError
fn from(err: SplitLabelError) -> ParseError
Converts to this type from the input type.
source§impl From<SvcParamsError> for ParseError
impl From<SvcParamsError> for ParseError
source§fn from(err: SvcParamsError) -> Self
fn from(err: SvcParamsError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Copy for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.