pub struct Device(DeviceId, TransmutableBox);
Tuple Fields§
§0: DeviceId
§1: TransmutableBox
Implementations§
source§impl Device
impl Device
pub fn new<T>(value: T) -> Selfwhere
T: Transmutable + 'static,
pub fn id(&self) -> DeviceId
pub fn borrow_mut(&self) -> RefMut<'_, Box<dyn Transmutable>>
pub fn try_borrow_mut( &self ) -> Result<RefMut<'_, Box<dyn Transmutable>>, BorrowMutError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl !UnwindSafe for Device
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