pub struct StaticExposures { /* private fields */ }Expand description
An in-memory exposure table.
For tests, and for a daemon serving a fixed set of published files from configuration rather than from the index.
Implementations§
Source§impl StaticExposures
impl StaticExposures
Sourcepub fn set_enabled(&self, token: &str, enabled: bool)
pub fn set_enabled(&self, token: &str, enabled: bool)
Switch a link off or on without forgetting its token.
Trait Implementations§
Source§impl Clone for StaticExposures
impl Clone for StaticExposures
Source§fn clone(&self) -> StaticExposures
fn clone(&self) -> StaticExposures
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 moreSource§impl Debug for StaticExposures
impl Debug for StaticExposures
Source§impl Default for StaticExposures
impl Default for StaticExposures
Source§fn default() -> StaticExposures
fn default() -> StaticExposures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StaticExposures
impl RefUnwindSafe for StaticExposures
impl Send for StaticExposures
impl Sync for StaticExposures
impl Unpin for StaticExposures
impl UnsafeUnpin for StaticExposures
impl UnwindSafe for StaticExposures
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