pub struct MainDeviceSink { /* private fields */ }Expand description
Sink for the main RenderingDevice.
free_rid on the main device is render-thread only, but Drop fires on whatever thread
the owner happens to die on. So free merely enqueues the RID and, the first time the
queue goes non-empty, schedules exactly one drain on the render thread. The drain
releases the queued RIDs in FIFO order (see the module drop-order contract).
Implementations§
Trait Implementations§
Source§impl RidSink for MainDeviceSink
impl RidSink for MainDeviceSink
Source§fn free(&self, rid: Rid)
fn free(&self, rid: Rid)
Release
rid (possibly deferred — see MainDeviceSink).Auto Trait Implementations§
impl !Freeze for MainDeviceSink
impl RefUnwindSafe for MainDeviceSink
impl Send for MainDeviceSink
impl Sync for MainDeviceSink
impl Unpin for MainDeviceSink
impl UnsafeUnpin for MainDeviceSink
impl UnwindSafe for MainDeviceSink
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