Struct netsblox_vm::std_system::RequestKey
source · pub struct RequestKey<C: CustomTypes<StdSystem<C>>>(/* private fields */);Expand description
A StdSystem key type for an asynchronous request.
Trait Implementations§
source§impl<C: CustomTypes<StdSystem<C>>> Key<Result<<C as CustomTypes<StdSystem<C>>>::Intermediate, String>> for RequestKey<C>
impl<C: CustomTypes<StdSystem<C>>> Key<Result<<C as CustomTypes<StdSystem<C>>>::Intermediate, String>> for RequestKey<C>
source§fn complete(self, value: Result<C::Intermediate, String>)
fn complete(self, value: Result<C::Intermediate, String>)
Completes the request with the given result.
A value of Ok denotes a successful request, whose value will be returned to the system
after conversion under CustomTypes::from_intermediate.
A value of Err denotes a failed request, which will be returned as an error to the runtime,
subject to the caller’s ErrorScheme setting.
Auto Trait Implementations§
impl<C> RefUnwindSafe for RequestKey<C>
impl<C> Send for RequestKey<C>
impl<C> Sync for RequestKey<C>
impl<C> Unpin for RequestKey<C>
impl<C> UnwindSafe for RequestKey<C>
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