Skip to main content

XhrRequestData

Struct XhrRequestData 

Source
pub struct XhrRequestData {
    pub id: u64,
    pub base: String,
    pub url: String,
    pub method: String,
    pub body: Vec<u8>,
    pub content_type: String,
    pub headers: Vec<(String, String)>,
    pub group: u8,
    pub host: String,
    pub runtime: u64,
}

Fields§

§id: u64§base: String§url: String§method: String§body: Vec<u8>§content_type: String§headers: Vec<(String, String)>§group: u8

要求を出したアプリのメモリの帳簿の組(scheduler::current_mem_group。TODO R2 (c)・R5)。 共有のワーカーはこの要求を処理する間この組を借り、そのアプリが止まったら要求・結果を捨てる。

§host: String

相手の印(小文字のホスト+ポート。xhr_sched::host_key)。1 つの相手が同時に使うワーカーの数を抑えるのに使う(2026-11-18)。

§runtime: u64

要求を出した JS の実行環境(JsRuntime::runtime_id。0 は不明)。タブを閉じた・止めた・ページを移ったとき、 この番号で要求・結果を捨て、取得中なら途中でやめる(forget_xhr_of_runtime。TODO R2 (d) ③、2026-11-18)。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.