[][src]Enum sdp_types::ParserError

pub enum ParserError {
    UnexpectedLine(usizeu8),
    InvalidLineFormat(usize, &'static str),
    InvalidFieldEncoding(usize, &'static str),
    InvalidFieldFormat(usize, &'static str),
    MissingField(usize, &'static str),
    FieldTrailingData(usize, &'static str),
    InvalidVersion(usizeVec<u8>),
    MultipleVersions(usize),
    NoVersion,
    MultipleOrigins(usize),
    NoOrigin,
    MultipleSessionNames(usize),
    NoSessionName,
    MultipleSessionDescription(usize),
    MultipleUris(usize),
    MultipleConnections(usize),
    MultipleTimeZones(usize),
    MultipleMediaTitles(usize),
    MultipleKeys(usize),
}

Parsing errors that can be returned from Session::parse.

Variants

UnexpectedLine(usizeu8)

The given line started with an unexpected character.

InvalidLineFormat(usize, &'static str)

The given line was not formatted correctly.

InvalidFieldEncoding(usize, &'static str)

The given line contained an invalid encoding at the specified field.

InvalidFieldFormat(usize, &'static str)

The given line contained an invalid format at the specified field.

MissingField(usize, &'static str)

The given line was missing field data at the specified field.

FieldTrailingData(usize, &'static str)

The given line had some trailing data at the specified field.

InvalidVersion(usizeVec<u8>)

The given version line did not contain a valid version number.

MultipleVersions(usize)

A second version line was found at the given line.

NoVersion

The SDP did not contain a version line.

MultipleOrigins(usize)

A second origin line was found at the given line.

NoOrigin

The SDP did not contain an origin line.

MultipleSessionNames(usize)

A second session name line was found at the given line.

NoSessionName

The SDP did not contain a session name line.

MultipleSessionDescription(usize)

A second session description line was found at the given line.

MultipleUris(usize)

A second URI line was found at the given line.

MultipleConnections(usize)

A second connection line was found at the given line.

MultipleTimeZones(usize)

A second time zone line was found at the given line.

MultipleMediaTitles(usize)

A second media title line was found at the given line.

MultipleKeys(usize)

A second key line was found at the given line.

Trait Implementations

impl Debug for ParserError[src]

impl Display for ParserError[src]

impl Eq for ParserError[src]

impl Error for ParserError[src]

impl PartialEq<ParserError> for ParserError[src]

impl StructuralEq for ParserError[src]

impl StructuralPartialEq for ParserError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.