Struct FunctionEnvMut
pub(in journal) struct FunctionEnvMut<'a, T>(pub(crate) BackendFunctionEnvMut<'a, T>)
where
T: 'a;Expand description
A temporary handle to a FunctionEnv.
Tuple Fields§
§0: BackendFunctionEnvMut<'a, T>Implementations§
§impl<T> FunctionEnvMut<'_, T>where
T: Send + 'static,
impl<T> FunctionEnvMut<'_, T>where
T: Send + 'static,
pub fn data_mut(&mut self) -> &mut T
pub fn data_mut(&mut self) -> &mut T
Returns a mutable- reference to the host state in this function environement.
pub fn as_ref(&self) -> FunctionEnv<T>
pub fn as_ref(&self) -> FunctionEnv<T>
Borrows a new immmutable reference
pub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
pub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
Borrows a new mutable reference
pub fn data_and_store_mut(&mut self) -> (&mut T, StoreMut<'_>)
pub fn data_and_store_mut(&mut self) -> (&mut T, StoreMut<'_>)
Borrows a new mutable reference of both the attached Store and host state
Trait Implementations§
§impl<T> AsStoreMut for FunctionEnvMut<'_, T>
impl<T> AsStoreMut for FunctionEnvMut<'_, T>
§fn as_store_mut(&mut self) -> StoreMut<'_>
fn as_store_mut(&mut self) -> StoreMut<'_>
Returns a
StoreMut pointing to the underlying context.§fn objects_mut(&mut self) -> &mut StoreObjects
fn objects_mut(&mut self) -> &mut StoreObjects
Returns the ObjectMutable
§impl<T> AsStoreRef for FunctionEnvMut<'_, T>
impl<T> AsStoreRef for FunctionEnvMut<'_, T>
§fn as_store_ref(&self) -> StoreRef<'_>
fn as_store_ref(&self) -> StoreRef<'_>
Returns a
StoreRef pointing to the underlying context.§impl<T> Debug for FunctionEnvMut<'_, T>
impl<T> Debug for FunctionEnvMut<'_, T>
§impl<'a, T> From<BackendFunctionEnvMut<'a, T>> for FunctionEnvMut<'a, T>where
T: 'a,
impl<'a, T> From<BackendFunctionEnvMut<'a, T>> for FunctionEnvMut<'a, T>where
T: 'a,
§fn from(value: BackendFunctionEnvMut<'a, T>) -> FunctionEnvMut<'a, T>
fn from(value: BackendFunctionEnvMut<'a, T>) -> FunctionEnvMut<'a, T>
Converts to this type from the input type.
§impl<'a, T> From<FunctionEnvMut<'a, T>> for FunctionEnvMut<'a, T>
impl<'a, T> From<FunctionEnvMut<'a, T>> for FunctionEnvMut<'a, T>
§fn from(value: FunctionEnvMut<'a, T>) -> FunctionEnvMut<'a, T>
fn from(value: FunctionEnvMut<'a, T>) -> FunctionEnvMut<'a, T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for FunctionEnvMut<'a, T>
impl<'a, T> !RefUnwindSafe for FunctionEnvMut<'a, T>
impl<'a, T> !Send for FunctionEnvMut<'a, T>
impl<'a, T> !Sync for FunctionEnvMut<'a, T>
impl<'a, T> Unpin for FunctionEnvMut<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for FunctionEnvMut<'a, T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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 more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
Catch panics and convert them into
500 Internal Server responses. Read more