#[non_exhaustive]pub enum BuilderError {
InvalidPort {
port: u16,
reason: String,
},
InvalidEventCapacity {
capacity: usize,
reason: String,
},
InvalidRecorderCapacity {
capacity: usize,
reason: String,
},
InvalidEvalTimeout {
timeout_secs: u64,
reason: String,
},
}Expand description
Errors that can occur when building the Victauri plugin via crate::VictauriBuilder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPort
The configured port is invalid (e.g., port 0).
InvalidEventCapacity
The event log capacity is out of the valid range.
InvalidRecorderCapacity
The recorder capacity is out of the valid range.
InvalidEvalTimeout
The eval timeout is out of the valid range.
Trait Implementations§
Source§impl Debug for BuilderError
impl Debug for BuilderError
Source§impl Display for BuilderError
impl Display for BuilderError
Source§impl Error for BuilderError
impl Error for BuilderError
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()
Auto Trait Implementations§
impl Freeze for BuilderError
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnsafeUnpin for BuilderError
impl UnwindSafe for BuilderError
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