pub enum BingerError {
BatchFull {
capacity: usize,
},
Io(Error),
}Expand description
Errors that can occur in binger-udp operations.
Covers batch overflow and I/O errors from the operating system.
§Conversions
std::io::Error is automatically converted into BingerError::Io
via the From trait, so ? works naturally with I/O operations.
Variants§
BatchFull
Batch is full — no more entries can be added.
Io(Error)
Transparent stdio error from the OS.
Trait Implementations§
Source§impl Debug for BingerError
impl Debug for BingerError
Source§impl Display for BingerError
impl Display for BingerError
Source§impl Error for BingerError
impl Error for BingerError
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 !RefUnwindSafe for BingerError
impl !UnwindSafe for BingerError
impl Freeze for BingerError
impl Send for BingerError
impl Sync for BingerError
impl Unpin for BingerError
impl UnsafeUnpin for BingerError
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