pub enum HttpCallbackAdmission {
Untracked,
Tracked {
release: Box<dyn FnOnce() + Send + 'static>,
},
Reject(Error),
}Expand description
Optional actor-owned work admitted synchronously before an HTTP callback is constructed or registered.
RivetKit wraps release in a drop guard, so it runs after the callback reply
is handed to core or whenever the registered callback is otherwise dropped.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpCallbackAdmission
impl !Sync for HttpCallbackAdmission
impl !UnwindSafe for HttpCallbackAdmission
impl Freeze for HttpCallbackAdmission
impl Send for HttpCallbackAdmission
impl Unpin for HttpCallbackAdmission
impl UnsafeUnpin for HttpCallbackAdmission
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