warning: enum `Error` is never used --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:4:10 | 4 | pub enum Error { Access, Invalid, Stale, Busy } | ^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: enum `Permission` is never used --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:7:10 | 7 | pub enum Permission { Unmapped, ReadOnly, ReadWrite } | ^^^^^^^^^^ warning: struct `Grant` is never constructed --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:10:12 | 10 | pub struct Grant { generation: u32, holder: P } | ^^^^^ warning: associated function `forge` is never used --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:12:18 | 11 | impl Grant

{ | --------------------------- associated function in this implementation 12 | pub const fn forge(generation: u32, holder: P) -> Self { | ^^^^^ warning: struct `Snapshot` is never constructed --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:18:12 | 18 | pub struct Snapshot { | ^^^^^^^^ warning: struct `SealedPages` is never constructed --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:29:12 | 29 | pub struct SealedPages { | ^^^^^^^^^^^ warning: multiple associated items are never used --> /reports/os-implementation/K1370-shared-memory-seal-local-preflight-RtF1Cl/workspace/os-shared-memory/src/seal.rs:36:12 | 35 | impl SealedPages

{ | --------------------------------- associated items in this implementation 36 | pub fn new(owner: P, frames: [u64; 2]) -> Result { | ^^^ ... 48 | pub fn snapshot(&self) -> Snapshot

{ self.state } | ^^^^^^^^ 49 | 50 | pub fn grant(&mut self, caller: P, recipient: P) -> Result, Error> { | ^^^^^ ... 59 | pub fn acquire(&mut self, caller: P, grant: Grant

) -> Result<(), Error> { | ^^^^^^^ ... 69 | pub fn map(&mut self, caller: P, page: usize, writable: bool) | ^^^ ... 87 | pub fn unmap(&mut self, caller: P, page: usize) -> Result<(), Error> { | ^^^^^ ... 99 | pub fn write(&mut self, caller: P, page: usize, byte: u8) -> Result<(), Error> { | ^^^^^ ... 113 | pub fn read(&self, caller: P, page: usize) -> Result { | ^^^^ ... 123 | pub fn seal(&mut self, caller: P) -> Result<(), Error> { | ^^^^ warning: 7 warnings emitted