Struct btrfs_no_std::Stripe
source · [−]#[repr(C, packed)]pub struct Stripe {
pub devid: U64<LE>,
pub offset: U64<LE>,
pub dev_uuid: UuidBytes,
}
Expand description
This structure is used to define the backing device storage that compose a
Chunk
.
Fields
devid: U64<LE>
The ID of the device that contains this stripe.
offset: U64<LE>
Location of the start of the stripe, in bytes.
The length is determined by the stripe_len
field of the associated
Chunk
.
dev_uuid: UuidBytes
UUID of the device that contains this stripe.
This can be used to confirm that the correct device has been retrieved.
Trait Implementations
sourceimpl AsBytes for Stripe
impl AsBytes for Stripe
sourcefn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
sourcefn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to bytes
. Read more
sourcefn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the prefix of bytes
. Read more
sourcefn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the suffix of bytes
. Read more
sourceimpl FromBytes for Stripe
impl FromBytes for Stripe
sourcefn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from bytes
. Read more
sourcefn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the prefix of bytes
. Read more
sourcefn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the suffix of bytes
. Read more
sourcefn new_zeroed() -> Self
fn new_zeroed() -> Self
Creates an instance of Self
from zeroed bytes.
impl Copy for Stripe
impl StructuralPartialEq for Stripe
impl Unaligned for Stripe
Auto Trait Implementations
impl RefUnwindSafe for Stripe
impl Send for Stripe
impl Sync for Stripe
impl Unpin for Stripe
impl UnwindSafe for Stripe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more