pub struct Resource {
pub id: u32,
pub key: String,
pub resource_type: String,
pub state: ResourceState,
pub data: Option<Vec<u8>>,
pub ref_count: u32,
pub size_bytes: usize,
}Fields§
§id: u32§key: String§resource_type: String§state: ResourceState§data: Option<Vec<u8>>§ref_count: u32§size_bytes: usizeAuto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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