pub struct OastHttpEvent { /* private fields */ }Expand description
Typed HTTP callback without paths, headers, addresses, or body bytes.
Implementations§
Source§impl OastHttpEvent
impl OastHttpEvent
Sourcepub const fn new(
scheme: OastHttpScheme,
method: OastHttpMethod,
body_present: bool,
) -> Self
pub const fn new( scheme: OastHttpScheme, method: OastHttpMethod, body_present: bool, ) -> Self
Creates a raw-free HTTP classification.
Sourcepub const fn scheme(self) -> OastHttpScheme
pub const fn scheme(self) -> OastHttpScheme
Returns the scheme.
Sourcepub const fn method(self) -> OastHttpMethod
pub const fn method(self) -> OastHttpMethod
Returns the method.
Sourcepub const fn body_present(self) -> bool
pub const fn body_present(self) -> bool
Returns whether a non-empty body was observed.
Trait Implementations§
Source§impl Clone for OastHttpEvent
impl Clone for OastHttpEvent
Source§fn clone(&self) -> OastHttpEvent
fn clone(&self) -> OastHttpEvent
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 OastHttpEvent
Source§impl Debug for OastHttpEvent
impl Debug for OastHttpEvent
impl Eq for OastHttpEvent
Source§impl Hash for OastHttpEvent
impl Hash for OastHttpEvent
Source§impl Ord for OastHttpEvent
impl Ord for OastHttpEvent
Source§fn cmp(&self, other: &OastHttpEvent) -> Ordering
fn cmp(&self, other: &OastHttpEvent) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OastHttpEvent
impl PartialEq for OastHttpEvent
Source§impl PartialOrd for OastHttpEvent
impl PartialOrd for OastHttpEvent
impl StructuralPartialEq for OastHttpEvent
Auto Trait Implementations§
impl Freeze for OastHttpEvent
impl RefUnwindSafe for OastHttpEvent
impl Send for OastHttpEvent
impl Sync for OastHttpEvent
impl Unpin for OastHttpEvent
impl UnsafeUnpin for OastHttpEvent
impl UnwindSafe for OastHttpEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more