pub struct StreamSeekPastEof {
pub current_pos: u64,
pub len: u64,
pub new_pos: u64,
}Expand description
Typed error from Stream::seek for an absolute byte target that
lands beyond the stream’s known length.
Surfaced as the typed payload of an io::Error (kind
ErrorKind::InvalidInput) so consumers like Symphonia preserve it
through their own error chain. Decoders downcast to recover the
structured info and classify the failure as caller-side (the seek
target is invalid for this stream, not a decoder state corruption).
Fields§
§current_pos: u64§len: u64§new_pos: u64Trait Implementations§
Source§impl Clone for StreamSeekPastEof
impl Clone for StreamSeekPastEof
Source§fn clone(&self) -> StreamSeekPastEof
fn clone(&self) -> StreamSeekPastEof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamSeekPastEof
impl Debug for StreamSeekPastEof
Source§impl Display for StreamSeekPastEof
impl Display for StreamSeekPastEof
Source§impl Error for StreamSeekPastEof
impl Error for StreamSeekPastEof
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 Copy for StreamSeekPastEof
Auto Trait Implementations§
impl Freeze for StreamSeekPastEof
impl RefUnwindSafe for StreamSeekPastEof
impl Send for StreamSeekPastEof
impl Sync for StreamSeekPastEof
impl Unpin for StreamSeekPastEof
impl UnsafeUnpin for StreamSeekPastEof
impl UnwindSafe for StreamSeekPastEof
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