pub enum BlockingMode {
None,
Line,
Block(u32),
}Expand description
A blocking flag when dealing with files
When using crate::syscalls::SYS_OPEN, Bit 0 of flags argument can be:
0 - non-blocking
1 - line buffered
In order to use Block mode, you need to issue syscall_blocking_mode
with the whole range of blocking modes available for usage
Variants§
Implementations§
Source§impl BlockingMode
impl BlockingMode
Trait Implementations§
Source§impl Clone for BlockingMode
impl Clone for BlockingMode
Source§fn clone(&self) -> BlockingMode
fn clone(&self) -> BlockingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockingMode
Source§impl Debug for BlockingMode
impl Debug for BlockingMode
impl Eq for BlockingMode
Source§impl Hash for BlockingMode
impl Hash for BlockingMode
Source§impl PartialEq for BlockingMode
impl PartialEq for BlockingMode
impl StructuralPartialEq for BlockingMode
Auto Trait Implementations§
impl Freeze for BlockingMode
impl RefUnwindSafe for BlockingMode
impl Send for BlockingMode
impl Sync for BlockingMode
impl Unpin for BlockingMode
impl UnsafeUnpin for BlockingMode
impl UnwindSafe for BlockingMode
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