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
sourceimpl Clone for HandleKind
impl Clone for HandleKind
sourcefn clone(&self) -> HandleKind
fn clone(&self) -> HandleKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HandleKind
impl Debug for HandleKind
sourceimpl Display for HandleKind
impl Display for HandleKind
sourceimpl PartialEq<HandleKind> for HandleKind
impl PartialEq<HandleKind> for HandleKind
sourcefn eq(&self, other: &HandleKind) -> bool
fn eq(&self, other: &HandleKind) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more