Skip to main content

CachedSendFn

Type Alias CachedSendFn 

Source
pub type CachedSendFn = Arc<dyn Fn(Envelope, MessagePayload) -> Result<(), SendError> + Send + Sync + 'static>;
Expand description

A cheaply cloneable, type-erased send function that delivers directly to a cached MailboxSender, bypassing the global TransportRegistry.

Created by RuntimeBridge::cached_sender and stored in each actor’s AddrCache keyed by the destination AddrHash.

Aliased Type§

pub struct CachedSendFn { /* private fields */ }