pub struct DangerousClient { /* private fields */ }Expand description
Proof that bypassing codex’s safety controls is permitted here.
Constructing one requires ALLOW_DANGEROUS_ENV to be set. Holding one is
not enough on its own: every Dangerous method re-checks.
Implementations§
Source§impl DangerousClient
impl DangerousClient
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Err(Error::DangerousNotAllowed) unless ALLOW_DANGEROUS_ENV is set
to a non-empty value.
Trait Implementations§
Source§impl Clone for DangerousClient
impl Clone for DangerousClient
Source§fn clone(&self) -> DangerousClient
fn clone(&self) -> DangerousClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DangerousClient
Auto Trait Implementations§
impl Freeze for DangerousClient
impl RefUnwindSafe for DangerousClient
impl Send for DangerousClient
impl Sync for DangerousClient
impl Unpin for DangerousClient
impl UnsafeUnpin for DangerousClient
impl UnwindSafe for DangerousClient
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