pub struct Resource {
pub name: String,
pub rtype: u32,
pub meta: [u8; 16],
pub bytes: Vec<u8>,
}Expand description
A resource of a bundle (Source::resource): its name, type and metadata as its manifest states them, and its
bytes.
Fields§
§name: StringThe resource’s name as its manifest states it.
rtype: u32The resource type id from the manifest.
meta: [u8; 16]The 16 metadata bytes from the manifest, kept as stored.
bytes: Vec<u8>The decoded payload.
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto 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