Skip to main content

ScheduleError

Enum ScheduleError 

Source
pub enum ScheduleError {
    QuantityTooLong(u64),
    InvalidId(&'static str),
    InvalidRevision {
        field: &'static str,
        maximum: u16,
        value: u16,
    },
    InvalidRecipient(&'static str),
    InvalidTime(&'static str),
    DayOutsideSchemaRange,
    EmptySchedule,
    DuplicateId(String),
    InvalidParties(String),
    DuplicateTrade(String),
    IntervalCount {
        id: String,
        expected: usize,
        actual: usize,
    },
    OverlappingFlows {
        id: String,
        position: usize,
    },
}
Expand description

Reason a nomination cannot be encoded as a German ESS 2.3 schedule.

Variants§

§

QuantityTooLong(u64)

The shortest exact MW representation is wider than the wire field.

§

InvalidId(&'static str)

Message or series ID violates the ESS alphanumeric grammar.

§

InvalidRevision

Revision lies outside the permitted range.

Fields

§field: &'static str

Offending field.

§maximum: u16

Highest allowed value.

§value: u16

Supplied revision.

§

InvalidRecipient(&'static str)

The EIC supplied for a control area or recipient belongs to the wrong class.

§

InvalidTime(&'static str)

The XML time format cannot represent an instant or day boundary.

§

DayOutsideSchemaRange

The interval falls outside the contiguous years qualified against the ESS core schema.

§

EmptySchedule

An A02 trade nomination requires at least one series.

§

DuplicateId(String)

The series ID appears more than once in the document.

§

InvalidParties(String)

A series must connect the sender and a distinct Bilanzkreis.

§

DuplicateTrade(String)

Two series describe the same directional flow.

§

IntervalCount

Series coverage differs from the length of the delivery day.

Fields

§id: String

Sender-assigned series ID.

§expected: usize

Length of the Berlin delivery day in quarter-hours.

§actual: usize

Number of supplied quantities.

§

OverlappingFlows

A quarter-hour contains delivery in both directions for a pair.

Fields

§id: String

Series ID of the second direction.

§position: usize

One-based quarter-hour position.

Trait Implementations§

Source§

impl Debug for ScheduleError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ScheduleError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ScheduleError

Source§

impl Error for ScheduleError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Replaced by Error::source.
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for ScheduleError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ScheduleError

Auto Trait Implementations§

§

impl Forget for ScheduleError

§

impl Freeze for ScheduleError
where &'static str: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for ScheduleError

§

impl RefUnwindSafe for ScheduleError

§

impl Send for ScheduleError
where &'static str: Send, RawVecInner: Send,

§

impl Sync for ScheduleError
where RawVecInner: Sync,

§

impl Unpin for ScheduleError
where &'static str: Unpin, *const u8 is !null: Unpin,

§

impl UnsafeUnpin for ScheduleError

§

impl UnwindSafe for ScheduleError
where &'static str: UnwindSafe, RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.