Struct webxr_api::SessionThread
source · pub struct SessionThread<Device> {
receiver: Receiver<SessionMsg>,
sender: Sender<SessionMsg>,
layers: Vec<(ContextId, LayerId)>,
pending_layers: Option<Vec<(ContextId, LayerId)>>,
frame_count: u64,
frame_sender: Sender<Frame>,
running: bool,
device: Device,
id: SessionId,
render_state: RenderState,
}
Expand description
For devices that want to do their own thread management, the SessionThread
type is exposed.
Fields§
§receiver: Receiver<SessionMsg>
§sender: Sender<SessionMsg>
§layers: Vec<(ContextId, LayerId)>
§pending_layers: Option<Vec<(ContextId, LayerId)>>
§frame_count: u64
§frame_sender: Sender<Frame>
§running: bool
§device: Device
§id: SessionId
§render_state: RenderState
Implementations§
source§impl<Device> SessionThread<Device>where
Device: DeviceAPI,
impl<Device> SessionThread<Device>where
Device: DeviceAPI,
Trait Implementations§
source§impl<Device> MainThreadSession for SessionThread<Device>where
Device: DeviceAPI,
impl<Device> MainThreadSession for SessionThread<Device>where
Device: DeviceAPI,
Auto Trait Implementations§
impl<Device> !Freeze for SessionThread<Device>
impl<Device> !RefUnwindSafe for SessionThread<Device>
impl<Device> Send for SessionThread<Device>where
Device: Send,
impl<Device> !Sync for SessionThread<Device>
impl<Device> Unpin for SessionThread<Device>where
Device: Unpin,
impl<Device> UnwindSafe for SessionThread<Device>where
Device: UnwindSafe,
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