#[repr(C, packed(1))]pub struct OpenReply {
pub status: u32,
pub file_id: u64,
pub size: u64,
pub file_flags: u32,
}Expand description
Open reply.
Wire layout:
status @ 0..4, file_id @ 4..12, size @ 12..20, file_flags @ 20..24.
§Wire-compatibility note
Earlier documentation wrongly claimed _pad0 @ 4..8, ino @ 8..16,
size @ 16..24, file_flags @ 24..28 (32 bytes); no server ever
produced that layout. The real layout above is what every scheme
server (net, bus) emits and what the kernel VFS client parses.
Fields§
§status: u32Status code: 0 = success.
file_id: u64Handle/id of the opened file.
size: u64File size in bytes (u64::MAX = size unknown).
file_flags: u32File flags (device, pipe, chunked read/write, directory…).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenReply
impl RefUnwindSafe for OpenReply
impl Send for OpenReply
impl Sync for OpenReply
impl Unpin for OpenReply
impl UnsafeUnpin for OpenReply
impl UnwindSafe for OpenReply
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