#[repr(C)]pub struct k_pipe {
pub buffer: *mut u8,
pub size: usize,
pub bytes_used: usize,
pub read_index: usize,
pub write_index: usize,
pub lock: k_spinlock,
pub wait_q: k_pipe__bindgen_ty_1,
pub flags: u8,
}
Expand description
Pipe Structure
Fields§
§buffer: *mut u8
< Pipe buffer: may be NULL
size: usize
< Buffer size
bytes_used: usize
< Number of bytes used in buffer
read_index: usize
< Where in buffer to read from
write_index: usize
< Where in buffer to write
lock: k_spinlock
< Synchronization lock
wait_q: k_pipe__bindgen_ty_1
§flags: u8
< Flags
Auto Trait Implementations§
impl Freeze for k_pipe
impl RefUnwindSafe for k_pipe
impl !Send for k_pipe
impl !Sync for k_pipe
impl Unpin for k_pipe
impl UnwindSafe for k_pipe
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