pub struct DescriptorPool { /* private fields */ }Expand description
Fetches co-travelers’ descriptors by the avatar URL the relay announced
(welcome occupants / join broadcast), so the browser renders “them” from
their Passport. Session-scoped and fetch-render-discard, per spec §3:
nothing here outlives the run. Keyed by occupant id.
Implementations§
Source§impl DescriptorPool
impl DescriptorPool
pub fn new() -> Self
Sourcepub fn fetch(&mut self, id: u32, url: &str)
pub fn fetch(&mut self, id: u32, url: &str)
Start fetching id’s descriptor from url on a background thread.
No-op if this occupant was already fetched or is in flight.
Sourcepub fn poll(&mut self) -> Vec<(u32, Descriptor)>
pub fn poll(&mut self) -> Vec<(u32, Descriptor)>
Collect descriptors that arrived since last frame. Failures are dropped silently — the traveler simply keeps their placeholder look.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for DescriptorPool
impl Freeze for DescriptorPool
impl RefUnwindSafe for DescriptorPool
impl Send for DescriptorPool
impl Unpin for DescriptorPool
impl UnsafeUnpin for DescriptorPool
impl UnwindSafe for DescriptorPool
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