Skip to main content

LocalSendRequest

Struct LocalSendRequest 

Source
pub struct LocalSendRequest<'a> {
    pub target_pid: u64,
    pub sender_pid: u64,
    pub message: Term,
    pub sender_clock: u64,
    pub replay_driver: Option<&'a Arc<Mutex<ReplayDriver>>>,
}
Expand description

Synchronous request to deliver one message to a local target process.

The message term references the sender’s heap. The call is synchronous, performed inside the sender’s slice while the sender body is alive, so the facility may read/encode the term during the call. The facility MUST NOT store the raw term past the call: the Present branch copies it into the receiver heap immediately; the Executing branch ETF-encodes it to bytes immediately.

Fields§

§target_pid: u64

PID of the local target process.

§sender_pid: u64

PID of the sending process (recorded for replay determinism).

§message: Term

The message term, referencing the sender’s heap.

§sender_clock: u64

The sender’s logical clock value, already ticked by the caller.

§replay_driver: Option<&'a Arc<Mutex<ReplayDriver>>>

Replay driver used to validate recorded delivery determinism.

Auto Trait Implementations§

§

impl<'a> Freeze for LocalSendRequest<'a>

§

impl<'a> RefUnwindSafe for LocalSendRequest<'a>

§

impl<'a> Send for LocalSendRequest<'a>

§

impl<'a> Sync for LocalSendRequest<'a>

§

impl<'a> Unpin for LocalSendRequest<'a>

§

impl<'a> UnsafeUnpin for LocalSendRequest<'a>

§

impl<'a> UnwindSafe for LocalSendRequest<'a>

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.