Struct etherparse::err::SliceWriteSpaceError
source · pub struct SliceWriteSpaceError {
pub required_len: usize,
pub len: usize,
pub layer: Layer,
pub layer_start_offset: usize,
}
Expand description
Error when not enough space is available in a slice to write a packet or header to it.
Fields§
§required_len: usize
Expected minimum length conflicting with the
actual_len
value.
len: usize
Length limiting or exceeding the required length.
layer: Layer
Layer in which could not be written to the slice.
layer_start_offset: usize
Offset from the start of the parsed data to the layer where the length error occurred.
Trait Implementations§
source§impl Clone for SliceWriteSpaceError
impl Clone for SliceWriteSpaceError
source§fn clone(&self) -> SliceWriteSpaceError
fn clone(&self) -> SliceWriteSpaceError
Returns a copy 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 moresource§impl Debug for SliceWriteSpaceError
impl Debug for SliceWriteSpaceError
source§impl Display for SliceWriteSpaceError
impl Display for SliceWriteSpaceError
source§impl Error for SliceWriteSpaceError
Available on crate feature std
only.
impl Error for SliceWriteSpaceError
Available on crate feature
std
only.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()
source§impl Hash for SliceWriteSpaceError
impl Hash for SliceWriteSpaceError
source§impl PartialEq for SliceWriteSpaceError
impl PartialEq for SliceWriteSpaceError
impl Eq for SliceWriteSpaceError
impl StructuralPartialEq for SliceWriteSpaceError
Auto Trait Implementations§
impl Freeze for SliceWriteSpaceError
impl RefUnwindSafe for SliceWriteSpaceError
impl Send for SliceWriteSpaceError
impl Sync for SliceWriteSpaceError
impl Unpin for SliceWriteSpaceError
impl UnwindSafe for SliceWriteSpaceError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)