pub struct Registry {
sender: Sender<RegistryMsg>,
waker: MainThreadWakerImpl,
}
Fields§
§sender: Sender<RegistryMsg>
§waker: MainThreadWakerImpl
Implementations§
source§impl Registry
impl Registry
pub fn supports_session( &mut self, mode: SessionMode, dest: Sender<Result<(), Error>>, )
pub fn request_session( &mut self, mode: SessionMode, init: SessionInit, dest: Sender<Result<Session, Error>>, animation_frame_handler: Sender<Frame>, )
pub fn simulate_device_connection( &mut self, init: MockDeviceInit, dest: Sender<Result<Sender<MockDeviceMsg>, Error>>, )
Trait Implementations§
source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl !Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)