pub struct InboundScope { /* private fields */ }Expand description
Makes inbound where pushes made on this thread go until it is dropped
— the first line of a thread a module starts with what it captured from
inbound_here:
ⓘ
let inbound = code_native::inbound_here();
std::thread::spawn(move || {
let _inbound = code_native::InboundScope::enter(inbound);
// … emit_inbound(…) lands in the queue of the link that asked
});Implementations§
Source§impl InboundScope
impl InboundScope
pub fn enter(inbound: Inbound) -> InboundScope
Trait Implementations§
Source§impl Drop for InboundScope
impl Drop for InboundScope
Auto Trait Implementations§
impl !Sync for InboundScope
impl Freeze for InboundScope
impl RefUnwindSafe for InboundScope
impl Send for InboundScope
impl Unpin for InboundScope
impl UnsafeUnpin for InboundScope
impl UnwindSafe for InboundScope
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