pub struct Payload<'a> {
pub name: &'a str,
pub version: Option<&'a str>,
pub dispatchable: bool,
pub bytes: &'a [u8],
}Expand description
One payload to lay down. What it is decides where it lands: a dispatchable payload is placed by name, everything else by name and version.
Fields§
§name: &'a str§version: Option<&'a str>The version from the signed manifest. Absent only for pre-kind layers and for tools, which are not keyed by version.
dispatchable: boolDispatched by name — see PayloadKind::is_dispatchable.
bytes: &'a [u8]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Payload<'a>
impl<'a> RefUnwindSafe for Payload<'a>
impl<'a> Send for Payload<'a>
impl<'a> Sync for Payload<'a>
impl<'a> Unpin for Payload<'a>
impl<'a> UnsafeUnpin for Payload<'a>
impl<'a> UnwindSafe for Payload<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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