pub struct DenyAllGate;Expand description
Refuses everything.
Trait Implementations§
Source§impl Clone for DenyAllGate
impl Clone for DenyAllGate
impl Copy for DenyAllGate
Source§impl Debug for DenyAllGate
impl Debug for DenyAllGate
Source§impl Default for DenyAllGate
impl Default for DenyAllGate
Source§impl NetGate for DenyAllGate
impl NetGate for DenyAllGate
Source§fn decide(&self, reach: &Reach) -> Option<Verdict>
fn decide(&self, reach: &Reach) -> Option<Verdict>
Answers now if it can. A gate that answers synchronously (a runtime’s
permission set) always returns
Some; None makes the engine
ask. Called again each time the engine needs the
question answered, so it may answer from a cache of its own.Source§fn interfaces(&self) -> Option<Verdict>
fn interfaces(&self) -> Option<Verdict>
May the engine list the machine’s interface addresses (its host
candidates beyond loopback)? (Deno’s
--allow-sys=networkInterfaces.)Source§fn ask(&self, reach: Reach) -> LocalBoxFuture<'static, Verdict>
fn ask(&self, reach: Reach) -> LocalBoxFuture<'static, Verdict>
Asks, the answer arriving through the returned future. Called only
after
decide returned None, at most once per question at a time
per connection (the engine dedupes and remembers the answer). The
future is dropped when the connection closes or
NetGate::ask_timeout passes (a refusal). The default answers from
NetGate::decide (None is a refusal).Source§fn ask_interfaces(&self) -> LocalBoxFuture<'static, Verdict>
fn ask_interfaces(&self) -> LocalBoxFuture<'static, Verdict>
Source§fn ask_timeout(&self) -> Duration
fn ask_timeout(&self) -> Duration
How long the engine waits for an
ask /
ask_interfaces answer before it takes
the question as refused.Auto Trait Implementations§
impl Forget for DenyAllGate
impl Freeze for DenyAllGate
impl Move for DenyAllGate
impl RefUnwindSafe for DenyAllGate
impl Send for DenyAllGate
impl Sync for DenyAllGate
impl Unpin for DenyAllGate
impl UnsafeUnpin for DenyAllGate
impl UnwindSafe for DenyAllGate
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.