Enum fastly::error::HandleKind
source · #[non_exhaustive]pub enum HandleKind {
Response,
Request,
Body,
}
Expand description
An enum representing the type of handles that exist within the Compute@Edge
platform that point to resources on the host side that users can access or
manipulate. Typically this enum is used as part of HandleError
to let
you know the type of handle involved when there is an error thrown while
using the lower level handle interface
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Response
This variant corresponds to the ResponseHandle
type
Request
This variant corresponds to the RequestHandle
type
Body
This variant corresponds to the BodyHandle
type
Trait Implementations§
source§impl Clone for HandleKind
impl Clone for HandleKind
source§fn clone(&self) -> HandleKind
fn clone(&self) -> HandleKind
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 HandleKind
impl Debug for HandleKind
source§impl Display for HandleKind
impl Display for HandleKind
source§impl PartialEq<HandleKind> for HandleKind
impl PartialEq<HandleKind> for HandleKind
source§fn eq(&self, other: &HandleKind) -> bool
fn eq(&self, other: &HandleKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HandleKind
impl Eq for HandleKind
impl StructuralEq for HandleKind
impl StructuralPartialEq for HandleKind
Auto Trait Implementations§
impl RefUnwindSafe for HandleKind
impl Send for HandleKind
impl Sync for HandleKind
impl Unpin for HandleKind
impl UnwindSafe for HandleKind
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