HandleError

Enumin errorfastly 0.13.1View source
#[non_exhaustive]
pub enum HandleError {
ClosedHandle(HandleKind),
InvalidHandle,
}

HandleError is for errors that might arise when using the low level handle interface. For example trying to use a handle for an operation that has already been closed out.

Variants

ClosedHandle

When using close on a handle, this error will be thrown if the resource for the handle has been removed from the session already

0: HandleKind

InvalidHandle

A handle did not exist or was the wrong type

Trait implementations

impl Clone for HandleError

fn clone(&self) -> Self

Parameters

self: &Self

Returns

Self

impl Debug for HandleError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Display for HandleError

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Parameters

self: &Self
__formatter: &mut ::core::fmt::Formatter

Returns

::core::fmt::Result

impl PartialEq for HandleError

fn eq(&self, other: &Self) -> bool

Parameters

self: &Self
other: &Self

Returns

bool

Auto trait implementations

Blanket implementations