Struct rutabaga_gfx::cross_domain::CrossDomainState
source · struct CrossDomainState {
context_resources: Arc<Mutex<BTreeMap<u32, CrossDomainResource>>>,
query_ring_id: u32,
channel_ring_id: u32,
connection: Option<Tube>,
jobs: Mutex<Option<VecDeque<CrossDomainJob>>>,
jobs_cvar: Condvar,
}
Fields§
§context_resources: Arc<Mutex<BTreeMap<u32, CrossDomainResource>>>
§query_ring_id: u32
§channel_ring_id: u32
§connection: Option<Tube>
§jobs: Mutex<Option<VecDeque<CrossDomainJob>>>
§jobs_cvar: Condvar
Implementations§
source§impl CrossDomainState
impl CrossDomainState
fn new( query_ring_id: u32, channel_ring_id: u32, context_resources: Arc<Mutex<BTreeMap<u32, CrossDomainResource>>>, connection: Option<Tube> ) -> CrossDomainState
fn send_msg( &self, opaque_data: &[u8], descriptors: &[RawDescriptor] ) -> RutabagaResult<usize>
fn receive_msg( &self, opaque_data: &mut [u8] ) -> RutabagaResult<(usize, Vec<OwnedDescriptor>)>
fn add_job(&self, job: CrossDomainJob)
fn wait_for_job(&self) -> Option<CrossDomainJob>
fn write_to_ring<T>(
&self,
ring_write: RingWrite<'_, T>,
ring_id: u32
) -> RutabagaResult<usize>where
T: FromBytes + AsBytes,
Auto Trait Implementations§
impl RefUnwindSafe for CrossDomainState
impl Send for CrossDomainState
impl Sync for CrossDomainState
impl Unpin for CrossDomainState
impl UnwindSafe for CrossDomainState
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