pub struct FileMetaShallowVersion {
pub header: FileMetaVersionHeader,
pub meta: Vec<u8>,
}Fields§
§header: FileMetaVersionHeader§meta: Vec<u8>Implementations§
Source§impl FileMetaShallowVersion
impl FileMetaShallowVersion
Sourcepub fn parse_version_meta(&self) -> Result<FileMetaVersion>
pub fn parse_version_meta(&self) -> Result<FileMetaVersion>
Parse version meta with legacy format compatibility.
Use this instead of FileMetaVersion::default() + unmarshal_msg() to handle old-version xl.meta.
pub fn write_quorum(&self, fallback_quorum: usize) -> usize
pub fn into_fileinfo( &self, volume: &str, path: &str, all_parts: bool, ) -> Result<FileInfo>
Trait Implementations§
Source§impl Clone for FileMetaShallowVersion
impl Clone for FileMetaShallowVersion
Source§impl Debug for FileMetaShallowVersion
impl Debug for FileMetaShallowVersion
Source§impl Default for FileMetaShallowVersion
impl Default for FileMetaShallowVersion
Source§impl<'de> Deserialize<'de> for FileMetaShallowVersion
impl<'de> Deserialize<'de> for FileMetaShallowVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileMetaShallowVersion
Source§impl Ord for FileMetaShallowVersion
impl Ord for FileMetaShallowVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FileMetaShallowVersion
impl PartialEq for FileMetaShallowVersion
Source§impl PartialOrd for FileMetaShallowVersion
impl PartialOrd for FileMetaShallowVersion
Source§impl Serialize for FileMetaShallowVersion
impl Serialize for FileMetaShallowVersion
impl StructuralPartialEq for FileMetaShallowVersion
Auto Trait Implementations§
impl Freeze for FileMetaShallowVersion
impl RefUnwindSafe for FileMetaShallowVersion
impl Send for FileMetaShallowVersion
impl Sync for FileMetaShallowVersion
impl Unpin for FileMetaShallowVersion
impl UnsafeUnpin for FileMetaShallowVersion
impl UnwindSafe for FileMetaShallowVersion
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