pub struct IntelNet { /* private fields */ }Expand description
The gate itself: offline, or online over one Fetch.
Implementations§
Source§impl IntelNet
impl IntelNet
Sourcepub fn offline() -> Self
pub fn offline() -> Self
A gate that refuses every URL. There is no fetcher behind it at all, so a refusal is not a policy check that could be skipped: there is nothing to call.
pub fn is_offline(&self) -> bool
Sourcepub fn refused_count(&self) -> u64
pub fn refused_count(&self) -> u64
How many URLs this gate has refused.
pub fn get(&self, url: &str) -> Result<Vec<u8>, NetError>
Auto Trait Implementations§
impl !Freeze for IntelNet
impl !RefUnwindSafe for IntelNet
impl !UnwindSafe for IntelNet
impl Send for IntelNet
impl Sync for IntelNet
impl Unpin for IntelNet
impl UnsafeUnpin for IntelNet
Blanket Implementations§
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