pub enum ExecutionContext {
Inbound(ExecutionRequest),
Outbound(ExecutionResponse),
}Expand description
Per-instance host context; we’ll extend this in the next step
(headers map, status, etc.). For now it just carries memory.
Variants§
Inbound(ExecutionRequest)
Outbound(ExecutionResponse)
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
Sourcepub fn is_inbound(&self) -> bool
pub fn is_inbound(&self) -> bool
Returns true if this is a ExecutionContext::Inbound, otherwise false
Sourcepub fn as_inbound_mut(&mut self) -> Option<&mut ExecutionRequest>
pub fn as_inbound_mut(&mut self) -> Option<&mut ExecutionRequest>
Optionally returns mutable references to the inner fields if this is a ExecutionContext::Inbound, otherwise None
Sourcepub fn as_inbound(&self) -> Option<&ExecutionRequest>
pub fn as_inbound(&self) -> Option<&ExecutionRequest>
Optionally returns references to the inner fields if this is a ExecutionContext::Inbound, otherwise None
Sourcepub fn into_inbound(self) -> Result<ExecutionRequest, Self>
pub fn into_inbound(self) -> Result<ExecutionRequest, Self>
Returns the inner fields if this is a ExecutionContext::Inbound, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_outbound(&self) -> bool
pub fn is_outbound(&self) -> bool
Returns true if this is a ExecutionContext::Outbound, otherwise false
Sourcepub fn as_outbound_mut(&mut self) -> Option<&mut ExecutionResponse>
pub fn as_outbound_mut(&mut self) -> Option<&mut ExecutionResponse>
Optionally returns mutable references to the inner fields if this is a ExecutionContext::Outbound, otherwise None
Sourcepub fn as_outbound(&self) -> Option<&ExecutionResponse>
pub fn as_outbound(&self) -> Option<&ExecutionResponse>
Optionally returns references to the inner fields if this is a ExecutionContext::Outbound, otherwise None
Sourcepub fn into_outbound(self) -> Result<ExecutionResponse, Self>
pub fn into_outbound(self) -> Result<ExecutionResponse, Self>
Returns the inner fields if this is a ExecutionContext::Outbound, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnwindSafe for ExecutionContext
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.