pub struct OutputTooShortError {
pub required: usize,
pub available: usize,
}Expand description
Reports that an output buffer cannot contain a prepared layout.
Fields§
§required: usizeThe exact number of bytes required by the prepared layout.
available: usizeThe number of bytes available in the supplied output buffer.
Trait Implementations§
Source§impl Clone for OutputTooShortError
impl Clone for OutputTooShortError
Source§fn clone(&self) -> OutputTooShortError
fn clone(&self) -> OutputTooShortError
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 moreimpl Copy for OutputTooShortError
Source§impl Debug for OutputTooShortError
impl Debug for OutputTooShortError
Source§impl Display for OutputTooShortError
impl Display for OutputTooShortError
impl Eq for OutputTooShortError
Source§impl Error for OutputTooShortError
impl Error for OutputTooShortError
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()
Source§impl PartialEq for OutputTooShortError
impl PartialEq for OutputTooShortError
impl StructuralPartialEq for OutputTooShortError
Auto Trait Implementations§
impl Freeze for OutputTooShortError
impl RefUnwindSafe for OutputTooShortError
impl Send for OutputTooShortError
impl Sync for OutputTooShortError
impl Unpin for OutputTooShortError
impl UnsafeUnpin for OutputTooShortError
impl UnwindSafe for OutputTooShortError
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