pub struct InputLoader { /* private fields */ }Expand description
Loads inputs without granting arbitrary filesystem authority.
Implementations§
Source§impl InputLoader
impl InputLoader
Sourcepub fn new(
roots: impl IntoIterator<Item = PathBuf>,
limits: ImageLimits,
) -> Result<Self, BridgeError>
pub fn new( roots: impl IntoIterator<Item = PathBuf>, limits: ImageLimits, ) -> Result<Self, BridgeError>
Opens configured roots as directory capabilities.
Sourcepub fn load(&self, input: &ImageInput) -> Result<LoadedImage, BridgeError>
pub fn load(&self, input: &ImageInput) -> Result<LoadedImage, BridgeError>
Loads and verifies one image input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputLoader
impl RefUnwindSafe for InputLoader
impl Send for InputLoader
impl Sync for InputLoader
impl Unpin for InputLoader
impl UnsafeUnpin for InputLoader
impl UnwindSafe for InputLoader
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