pub struct DenyImplicitOpenGate();
Expand description
Disallow any implicitly referenced images or storage objects.
Always returns errors, ensuring nothing can be opened implicitly. Useful when you intend to explicitly override all potential implicit references, and want a safeguard that you did not forget anything.
If you did forget something, the error generated by this object will most likely be propagated
up to the prompting FormatDriverBuilder::open()
call, failing it.
Trait Implementations§
Source§impl Clone for DenyImplicitOpenGate
impl Clone for DenyImplicitOpenGate
Source§fn clone(&self) -> DenyImplicitOpenGate
fn clone(&self) -> DenyImplicitOpenGate
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 DenyImplicitOpenGate
impl Debug for DenyImplicitOpenGate
Source§impl Default for DenyImplicitOpenGate
impl Default for DenyImplicitOpenGate
Source§fn default() -> DenyImplicitOpenGate
fn default() -> DenyImplicitOpenGate
Returns the “default value” for a type. Read more
Source§impl<S: Storage> ImplicitOpenGate<S> for DenyImplicitOpenGate
impl<S: Storage> ImplicitOpenGate<S> for DenyImplicitOpenGate
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 DenyImplicitOpenGate
Auto Trait Implementations§
impl Freeze for DenyImplicitOpenGate
impl RefUnwindSafe for DenyImplicitOpenGate
impl Send for DenyImplicitOpenGate
impl Sync for DenyImplicitOpenGate
impl Unpin for DenyImplicitOpenGate
impl UnwindSafe for DenyImplicitOpenGate
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