pub struct AppSink { /* private fields */ }Expand description
An in-process face connecting application code to the forwarding engine.
express() sends an Interest and waits for the matching Data.
produce() registers a handler for a name prefix.
Internally uses tokio::sync::mpsc channels — zero-copy Arc<> passing
for same-process use.
Implementations§
Source§impl AppSink
impl AppSink
Sourcepub fn new(
face_id: FaceId,
capacity: usize,
) -> (AppSink, Receiver<OutboundRequest>)
pub fn new( face_id: FaceId, capacity: usize, ) -> (AppSink, Receiver<OutboundRequest>)
Create a new AppSink and the matching request receiver.
The caller (typically the engine) holds the Receiver and dispatches
OutboundRequest messages as they arrive.
pub fn face_id(&self) -> FaceId
Auto Trait Implementations§
impl Freeze for AppSink
impl RefUnwindSafe for AppSink
impl Send for AppSink
impl Sync for AppSink
impl Unpin for AppSink
impl UnwindSafe for AppSink
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