[−][src]Struct sunrise_fs::detail::gpt::GPTPartitionEntry
A GPT partition entry.
Fields
partition_type: RawUUID
Partition type GUID.
unique_id: RawUUID
Partition GUID.
first_lba: u64
First LBA of the partition.
last_lba: u64
Last LBA of the partition (inclusive).
attribute: u64
Attribute flags.
partition_name: [u16; 36]
Partition name in UTF16LE.
Implementations
impl GPTPartitionEntry
[src]
pub fn set_partition_type(&mut self, uuid: Uuid)
[src]
Set the partition type GUID.
pub fn get_partition_type(&self) -> Uuid
[src]
Get the partition type GUID.
pub fn set_unique_id(&mut self, uuid: Uuid)
[src]
Set the unique partition GUID.
pub fn get_unique_id(&self) -> Uuid
[src]
Get the unique partition GUID.
pub fn set_name(&mut self, name: &str)
[src]
Set the name of the partition.
pub fn from_bytes(bytes: [u8; 128]) -> Self
[src]
Create a GPTPartitionEntry from bytes.
pub fn read(&mut self, bytes: [u8; 128])
[src]
Read the content of a raw array into a GPTPartitionEntry.
pub fn write(&self) -> [u8; 128]
[src]
Conver the structure data to a raw array.
Trait Implementations
impl Clone for GPTPartitionEntry
[src]
fn clone(&self) -> GPTPartitionEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GPTPartitionEntry
[src]
impl Debug for GPTPartitionEntry
[src]
impl Default for GPTPartitionEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for GPTPartitionEntry
impl Send for GPTPartitionEntry
impl Sync for GPTPartitionEntry
impl Unpin for GPTPartitionEntry
impl UnwindSafe for GPTPartitionEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&self) -> usize
[src]
fn is_cool(addr: usize, size: usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,