Lines Matching refs:Protection
112 pub struct Protection { struct
117 impl Protection { impl
120 pub fn read_write() -> Protection { in read_write()
121 Protection { in read_write()
129 pub fn read() -> Protection { in read()
130 Protection { in read()
138 pub fn write() -> Protection { in write()
139 Protection { in write()
147 pub fn set_read(self) -> Protection { in set_read() argument
148 Protection { read: true, ..self } in set_read()
153 pub fn set_write(self) -> Protection { in set_write() argument
154 Protection { in set_write()
162 pub fn allows(&self, other: &Protection) -> bool { in allows()
437 pub(crate) protection: Option<Protection>,
492 pub fn protection(mut self, protection: Protection) -> MemoryMappingBuilder<'a> { in protection()
564 _prot: Protection, in add_fd_mapping() argument