[][src]Struct fastly::error::BufferSizeError

pub struct BufferSizeError {
    pub buf_size: usize,
    pub needed_buf_size: usize,
}

Insufficient buffer size error.

This is returned by methods like RequestHandle::get_header_names() if a value was larger than the provided maximum size.

If you get such an error, you can try the same call again with a larger buffer.

Fields

buf_size: usize

The attempted buffer size.

This is to help make nicer error messages.

needed_buf_size: usize

The buffer size that was required.

Trying an operation again with a buffer at least this big may succeed where a previous call failed. However, it is not guaranteed to succeed, for example if there is an even larger value later in the list than the first value that was too large.

Trait Implementations

impl Clone for BufferSizeError[src]

impl Copy for BufferSizeError[src]

impl Debug for BufferSizeError[src]

impl Display for BufferSizeError[src]

impl Eq for BufferSizeError[src]

impl Error for BufferSizeError[src]

impl PartialEq<BufferSizeError> for BufferSizeError[src]

impl StructuralEq for BufferSizeError[src]

impl StructuralPartialEq for BufferSizeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.