pub struct RequestId(pub u64);Expand description
Names one request for as long as its host tracks it.
Never reused, for the reason blitz-wasm gives for handles and listener
ids: a stale id must be an error rather than a silent hit on whatever took
its place. A guest that releases a request and then reads it gets
FetchState::Unknown, not another request’s body.
A u64 here. A binding that has to return this to a guest through a
negative-is-error i32 has a narrower range to work with, and capping it is
that binding’s business, not this crate’s.
Tuple Fields§
§0: u64Trait Implementations§
impl Copy for RequestId
impl Eq for RequestId
Source§impl Ord for RequestId
impl Ord for RequestId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RequestId
impl PartialOrd for RequestId
impl StructuralPartialEq for RequestId
Auto Trait Implementations§
impl Freeze for RequestId
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnsafeUnpin for RequestId
impl UnwindSafe for RequestId
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