pub struct ResourceData<I, U> {
pub udata: U,
/* private fields */
}Expand description
The ObjectData implementation that is internally used by this crate
Fields§
§udata: UThe user-data associated with this object
Trait Implementations§
Source§impl<I: Resource + 'static, D: 'static, U: Dispatch<I, D> + Send + Sync + 'static> ObjectData<D> for ResourceData<I, U>
impl<I: Resource + 'static, D: 'static, U: Dispatch<I, D> + Send + Sync + 'static> ObjectData<D> for ResourceData<I, U>
Source§fn request(
self: Arc<Self>,
handle: &Handle,
data: &mut D,
client_id: ClientId,
msg: Message<ObjectId, OwnedFd>,
) -> Option<Arc<dyn ObjectData<D>>>
fn request( self: Arc<Self>, handle: &Handle, data: &mut D, client_id: ClientId, msg: Message<ObjectId, OwnedFd>, ) -> Option<Arc<dyn ObjectData<D>>>
Dispatch a request for the associated object Read more
Auto Trait Implementations§
impl<I, U> Freeze for ResourceData<I, U>where
U: Freeze,
impl<I, U> RefUnwindSafe for ResourceData<I, U>where
U: RefUnwindSafe,
impl<I, U> Send for ResourceData<I, U>where
U: Send,
impl<I, U> Sync for ResourceData<I, U>where
U: Sync,
impl<I, U> Unpin for ResourceData<I, U>where
U: Unpin,
impl<I, U> UnsafeUnpin for ResourceData<I, U>where
U: UnsafeUnpin,
impl<I, U> UnwindSafe for ResourceData<I, U>where
U: 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