pub struct PermissiveImplicitOpenGate();
Expand description
Open all implicitly referenced images/files unrestricted, as requested.
Use with caution! Allowing all implicit dependencies to be opened automatically without restrictions is dangerous:
- if you plan to give access to the image to an untrusted third party (e.g. a VM guest), and
- unless the image comes from a fully trusted source.
This would give the untrusted third party potentially access to arbitrary storage object accessible through imago.
(See also the safety section on
FormatDriverInstance::probe()
.)
Trait Implementations§
Source§impl Clone for PermissiveImplicitOpenGate
impl Clone for PermissiveImplicitOpenGate
Source§fn clone(&self) -> PermissiveImplicitOpenGate
fn clone(&self) -> PermissiveImplicitOpenGate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PermissiveImplicitOpenGate
impl Debug for PermissiveImplicitOpenGate
Source§impl Default for PermissiveImplicitOpenGate
impl Default for PermissiveImplicitOpenGate
Source§fn default() -> PermissiveImplicitOpenGate
fn default() -> PermissiveImplicitOpenGate
Returns the “default value” for a type. Read more
Source§impl<S: Storage> ImplicitOpenGate<S> for PermissiveImplicitOpenGate
impl<S: Storage> ImplicitOpenGate<S> for PermissiveImplicitOpenGate
Source§async fn open_format<F: FormatDriverBuilder<S>>(
&mut self,
builder: F,
) -> Result<F::Format>
async fn open_format<F: FormatDriverBuilder<S>>( &mut self, builder: F, ) -> Result<F::Format>
Open an implicitly referenced format layer. Read more
Source§async fn open_storage(&mut self, builder: StorageOpenOptions) -> Result<S>
async fn open_storage(&mut self, builder: StorageOpenOptions) -> Result<S>
Open an implicitly referenced storage object. Read more
impl Copy for PermissiveImplicitOpenGate
Auto Trait Implementations§
impl Freeze for PermissiveImplicitOpenGate
impl RefUnwindSafe for PermissiveImplicitOpenGate
impl Send for PermissiveImplicitOpenGate
impl Sync for PermissiveImplicitOpenGate
impl Unpin for PermissiveImplicitOpenGate
impl UnwindSafe for PermissiveImplicitOpenGate
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