Enum iroh_bytes::store::flat::FileName
source · pub enum FileName {
PartialData(Hash, [u8; 16]),
Data(Hash),
PartialOutboard(Hash, [u8; 16]),
Outboard(Hash),
TempPaths(Hash, [u8; 16]),
Paths(Hash),
Meta(Vec<u8>),
}Expand description
A file name that indicates the purpose of the file.
Variants§
PartialData(Hash, [u8; 16])
Incomplete data for the hash, with an unique id
Data(Hash)
File is storing data for the hash
PartialOutboard(Hash, [u8; 16])
File is storing a partial outboard
Outboard(Hash)
File is storing an outboard
We can have multiple files with the same outboard, in case the outboard does not contain hashes. But we don’t store those outboards.
TempPaths(Hash, [u8; 16])
Temporary paths file
Paths(Hash)
External paths for the hash
Meta(Vec<u8>)
File is going to be used to store metadata
Implementations§
Trait Implementations§
source§impl PartialEq for FileName
impl PartialEq for FileName
impl Eq for FileName
impl StructuralEq for FileName
impl StructuralPartialEq for FileName
Auto Trait Implementations§
impl RefUnwindSafe for FileName
impl Send for FileName
impl Sync for FileName
impl Unpin for FileName
impl UnwindSafe for FileName
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