pub struct Status_type(/* private fields */);
Expand description
The status of a file.
The status is stored in a 8-bit integer, with the following layout:
§| Append | Non-blocking | Synchronous | Synchronous data only |
| 0 | 1 | 2 | 3 |
§Example
use File_system::Status_type;
let Status = Status_type::New(true, false, true, false);
assert_eq!(Status.Get_append(), true);
assert_eq!(Status.Get_non_blocking(), false);
assert_eq!(Status.Get_synchronous(), true);
assert_eq!(Status.Get_synchronous_data_only(), false);
Implementations§
Source§impl Status_type
impl Status_type
pub const Append_bit: u8 = 1u8
pub const Non_blocking_bit: u8 = 2u8
pub const Synchronous_bit: u8 = 4u8
pub const Synchronous_data_only_bit: u8 = 8u8
pub const Size: u8 = 4u8
pub const Non_blocking: Self = _
pub const None: Self = _
pub const fn New( Append: bool, Non_blocking: bool, Synchronous: bool, Synchronous_data_only: bool, ) -> Self
pub const fn Set_non_blocking(self, Value: bool) -> Self
pub fn Get_non_blocking(&self) -> bool
pub const fn Set_append(self, Value: bool) -> Self
pub const fn Get_append(&self) -> bool
pub const fn Set_synchronous(self, Value: bool) -> Self
pub const fn Get_synchronous(&self) -> bool
pub const fn Set_synchronous_data_only(self, Value: bool) -> Self
pub const fn Get_synchronous_data_only(&self) -> bool
pub const fn From_u8(Value: u8) -> Self
Trait Implementations§
Source§impl Clone for Status_type
impl Clone for Status_type
Source§fn clone(&self) -> Status_type
fn clone(&self) -> Status_type
Returns a copy 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 Status_type
impl Debug for Status_type
Source§impl Default for Status_type
impl Default for Status_type
Source§impl PartialEq for Status_type
impl PartialEq for Status_type
impl Copy for Status_type
impl Eq for Status_type
impl StructuralPartialEq for Status_type
Auto Trait Implementations§
impl Freeze for Status_type
impl RefUnwindSafe for Status_type
impl Send for Status_type
impl Sync for Status_type
impl Unpin for Status_type
impl UnwindSafe for Status_type
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