pub struct ComponentInvokeRequest {
pub handle: ComponentHandle,
pub payload: Vec<u8>,
pub deadline: Duration,
}Expand description
Request to invoke a loaded component’s handler export once.
Fields§
§handle: ComponentHandleHandle to the component instance to invoke, from a prior
crate::CapabilityEngine::load call.
payload: Vec<u8>Raw request payload bytes, passed to the component’s export unmodified.
deadline: DurationMaximum time to wait for this invocation before it is cancelled and
crate::CapabilityError::Timeout is returned. Must never exceed
the component’s own
crate::ResourceLimits::invoke_timeout_ms.
Trait Implementations§
Source§impl Clone for ComponentInvokeRequest
impl Clone for ComponentInvokeRequest
Source§fn clone(&self) -> ComponentInvokeRequest
fn clone(&self) -> ComponentInvokeRequest
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 moreSource§impl Debug for ComponentInvokeRequest
impl Debug for ComponentInvokeRequest
impl Eq for ComponentInvokeRequest
Source§impl PartialEq for ComponentInvokeRequest
impl PartialEq for ComponentInvokeRequest
impl StructuralPartialEq for ComponentInvokeRequest
Auto Trait Implementations§
impl Freeze for ComponentInvokeRequest
impl RefUnwindSafe for ComponentInvokeRequest
impl Send for ComponentInvokeRequest
impl Sync for ComponentInvokeRequest
impl Unpin for ComponentInvokeRequest
impl UnsafeUnpin for ComponentInvokeRequest
impl UnwindSafe for ComponentInvokeRequest
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