pub struct CallSlot {
pub gen: AtomicU32,
pub state: SpinLock<CallState>,
pub waitq: WaitQueue,
pub reply: SpinLock<Option<ReplyPayload>>,
pub caller: SpinLock<Option<TaskId>>,
pub endpoint_id: u64,
pub resp: MsgBuf,
pub fastpath: AtomicBool,
}Expand description
Caller-side description of an in-flight call.
Fields§
§gen: AtomicU32Generation, bumped on cancellation. A Reply handle snapshots it.
state: SpinLock<CallState>Lifecycle state.
waitq: WaitQueueCaller wait queue.
reply: SpinLock<Option<ReplyPayload>>Reply payload once Done.
caller: SpinLock<Option<TaskId>>Task registered as the caller (used by exit cleanup).
endpoint_id: u64Endpoint id, used to cancel calls when the endpoint closes.
resp: MsgBufResponse buffers validated at call time.
fastpath: AtomicBoolN3 directed wakeup (§10): wake the caller on the replier’s CPU.
Implementations§
Auto Trait Implementations§
impl !Freeze for CallSlot
impl !RefUnwindSafe for CallSlot
impl !UnwindSafe for CallSlot
impl Forget for CallSlot
impl Move for CallSlot
impl Send for CallSlot
impl Sync for CallSlot
impl Unpin for CallSlot
impl UnsafeUnpin for CallSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more