pub struct Request<'a> {
pub kind: &'a str,
pub payload: &'a Map<String, Value>,
pub lane: &'a str,
pub caller_task: Option<&'a str>,
pub host: &'a dyn TaskHost,
pub signal: &'a Signal,
}Expand description
One host request as a module sees it (TS HostModuleRequest plus the NativeHostApi).
Fields§
§kind: &'a str§payload: &'a Map<String, Value>§lane: &'a strLane whose kernel sent the request; the root agent is “main”.
caller_task: Option<&'a str>Task that owns the lane, None for the root lane.
host: &'a dyn TaskHost§signal: &'a SignalAborted when the requesting cell ends.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Request<'a>
impl<'a> !UnwindSafe for Request<'a>
impl<'a> Forget for Request<'a>
impl<'a> Freeze for Request<'a>
impl<'a> Move for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
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