pub struct Entry<'a> {
pub role: Role,
pub path: &'a str,
pub data: &'a [u8],
}Expand description
One file in a bundle, borrowed from the buffer it arrived in.
Fields§
§role: RoleHow the device should treat it.
path: &'a strWhere it goes, relative to the root of the volume. Always a valid
relative path when it came from Bundle::parse.
data: &'a [u8]The file’s contents.
Trait Implementations§
impl<'a> Copy for Entry<'a>
impl<'a> Eq for Entry<'a>
impl<'a> StructuralPartialEq for Entry<'a>
Auto Trait Implementations§
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'a>
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