Enum FrameReaderError
pub enum FrameReaderError {
WrongBuffer,
}Expand description
A cursor was supplied to a buffer other than the one that created it.
use ferravex_engine::frame_events::{FrameEvents, FrameReaderError};
let first = FrameEvents::<u8>::new(1);
let second = FrameEvents::<u8>::new(1);
let mut reader = first.reader();
assert_eq!(second.read_with(&mut reader).unwrap_err(), FrameReaderError::WrongBuffer);Variants§
WrongBuffer
Neither the cursor nor either buffer is changed. Create a new reader on the intended buffer instead; reset does not silently rebind a cursor.
Trait Implementations§
§impl Clone for FrameReaderError
impl Clone for FrameReaderError
§fn clone(&self) -> FrameReaderError
fn clone(&self) -> FrameReaderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FrameReaderError
impl Debug for FrameReaderError
§impl Display for FrameReaderError
impl Display for FrameReaderError
§impl Error for FrameReaderError
impl Error for FrameReaderError
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()
§impl PartialEq for FrameReaderError
impl PartialEq for FrameReaderError
impl Copy for FrameReaderError
impl Eq for FrameReaderError
impl StructuralPartialEq for FrameReaderError
Auto Trait Implementations§
impl Freeze for FrameReaderError
impl RefUnwindSafe for FrameReaderError
impl Send for FrameReaderError
impl Sync for FrameReaderError
impl Unpin for FrameReaderError
impl UnwindSafe for FrameReaderError
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