pub enum IcalParseError {
MissingCrlf(String),
MissingPropertyColon(String),
NonUtf8Header(String),
ExpectedBegin(String),
MissingEnd(String),
}Available on crate feature
parser only.Expand description
An error raised while parsing iCalendar text.
Variants§
MissingCrlf(String)
A line carried no CR?LF separator.
MissingPropertyColon(String)
A content line carried no colon separating the name from the value.
NonUtf8Header(String)
A content line’s name or parameters were not valid UTF-8; only a value may carry a foreign charset.
ExpectedBegin(String)
A card did not open with a BEGIN:VCALENDAR line.
MissingEnd(String)
A card was left open by a missing END:VCALENDAR line.
Trait Implementations§
Source§impl Clone for IcalParseError
impl Clone for IcalParseError
Source§fn clone(&self) -> IcalParseError
fn clone(&self) -> IcalParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IcalParseError
impl Debug for IcalParseError
Source§impl Display for IcalParseError
impl Display for IcalParseError
impl Eq for IcalParseError
Source§impl Error for IcalParseError
impl Error for IcalParseError
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 PartialEq for IcalParseError
impl PartialEq for IcalParseError
impl StructuralPartialEq for IcalParseError
Auto Trait Implementations§
impl Freeze for IcalParseError
impl RefUnwindSafe for IcalParseError
impl Send for IcalParseError
impl Sync for IcalParseError
impl Unpin for IcalParseError
impl UnsafeUnpin for IcalParseError
impl UnwindSafe for IcalParseError
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