pub struct DiskConfig { /* private fields */ }Expand description
One named disk’s declaration inside a FilesystemConfig - a root
path and, for a publicly-served disk, the URL prefix files under it
are reachable at. Built with DiskConfig::private/DiskConfig::public
rather than a struct literal, mirroring local()/public()’s own
private-vs-served distinction (url_prefix: None vs Some(..)) so a
config-declared disk can’t accidentally end up in a state neither of
the two built-in disks can.
Implementations§
Auto Trait Implementations§
impl Forget for DiskConfig
impl Freeze for DiskConfig
impl Move for DiskConfig
impl RefUnwindSafe for DiskConfig
impl Send for DiskConfig
impl Sync for DiskConfig
impl Unpin for DiskConfig
impl UnsafeUnpin for DiskConfig
impl UnwindSafe for DiskConfig
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