pub enum OverwriteFormat {
NoOverwrite,
OverwriteToCompact,
OverwriteToPadded,
// some variants omitted
}Expand description
The list of configuration options.
Variants§
NoOverwrite
Instructs Blobfs to always respond false to
fuchsia.fxfs.BlobCreator.NeedsOverwrite. Blobs written will use the
the default format in the filesystem superblock. Note that this does not
prevent a caller from overwriting a blob.
OverwriteToCompact
Instructs Blobfs to respond true to
fuchsia.fxfs.BlobCreator.NeedsOverwrite for existing blobs not in
compact format, and all blobs written will be written in compact format.
OverwriteToPadded
Instructs Blobfs to respond true to
fuchsia.fxfs.BlobCreator.NeedsOverwrite for existing blobs not in
padded format, and all blobs written will be written in padded format.
Implementations§
Source§impl OverwriteFormat
impl OverwriteFormat
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for OverwriteFormat
impl Clone for OverwriteFormat
Source§fn clone(&self) -> OverwriteFormat
fn clone(&self) -> OverwriteFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 OverwriteFormat
impl Debug for OverwriteFormat
Source§impl<D: ResourceDialect> Decode<OverwriteFormat, D> for OverwriteFormat
impl<D: ResourceDialect> Decode<OverwriteFormat, D> for OverwriteFormat
Source§impl<D: ResourceDialect> Encode<OverwriteFormat, D> for OverwriteFormat
impl<D: ResourceDialect> Encode<OverwriteFormat, D> for OverwriteFormat
Source§impl Hash for OverwriteFormat
impl Hash for OverwriteFormat
Source§impl Ord for OverwriteFormat
impl Ord for OverwriteFormat
Source§fn cmp(&self, other: &OverwriteFormat) -> Ordering
fn cmp(&self, other: &OverwriteFormat) -> Ordering
1.21.0 · 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
Source§impl PartialEq for OverwriteFormat
impl PartialEq for OverwriteFormat
Source§impl PartialOrd for OverwriteFormat
impl PartialOrd for OverwriteFormat
Source§impl TypeMarker for OverwriteFormat
impl TypeMarker for OverwriteFormat
Source§type Owned = OverwriteFormat
type Owned = OverwriteFormat
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for OverwriteFormat
impl ValueTypeMarker for OverwriteFormat
Source§type Borrowed<'a> = OverwriteFormat
type Borrowed<'a> = OverwriteFormat
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Copy for OverwriteFormat
impl Eq for OverwriteFormat
impl StructuralPartialEq for OverwriteFormat
Auto Trait Implementations§
impl Freeze for OverwriteFormat
impl RefUnwindSafe for OverwriteFormat
impl Send for OverwriteFormat
impl Sync for OverwriteFormat
impl Unpin for OverwriteFormat
impl UnsafeUnpin for OverwriteFormat
impl UnwindSafe for OverwriteFormat
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