pub enum MemberSource {
Flat {
path: PathBuf,
map: Mmap,
},
Dir {
root: PathBuf,
shard_maps: BTreeMap<String, Mmap>,
},
Zip {
path: PathBuf,
map: Mmap,
ranges: BTreeMap<String, MemberRange>,
},
}Expand description
Where package members are served from.
Variants§
Flat
Flat RLXPFLAT single-file mmap.
Dir
Unpacked directory tree with per-shard mmaps.
Zip
ZIP64 STORE archive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemberSource
impl RefUnwindSafe for MemberSource
impl Send for MemberSource
impl Sync for MemberSource
impl Unpin for MemberSource
impl UnsafeUnpin for MemberSource
impl UnwindSafe for MemberSource
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more