Lines Matching refs:MemoryMappingBuilder
77 fn from_descriptor(self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder; in from_descriptor() argument
80 pub struct MemoryMappingBuilder<'a> { struct
88 impl<'a> MemoryMappingBuilderUnix<'a> for MemoryMappingBuilder<'a> { argument
92 fn from_descriptor(mut self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder { in from_descriptor() argument
99 impl<'a> MemoryMappingBuilder<'a> { impl
101 pub fn new(size: usize) -> MemoryMappingBuilder<'a> { in new()
102 MemoryMappingBuilder { in new()
118 pub fn from_file(mut self, file: &'a File) -> MemoryMappingBuilder { in from_file() argument
126 pub fn from_shared_memory(mut self, shm: &'a SharedMemory) -> MemoryMappingBuilder { in from_shared_memory() argument
134 pub fn offset(mut self, offset: u64) -> MemoryMappingBuilder<'a> { in offset()
142 pub fn protection(mut self, protection: Protection) -> MemoryMappingBuilder<'a> { in protection()
150 pub fn populate(mut self) -> MemoryMappingBuilder<'a> { in populate()
163 MemoryMappingBuilder::wrap(SysUtilMmap::new_protection( in build()
169 MemoryMappingBuilder::wrap(SysUtilMmap::from_fd_offset_protection_populate( in build()
195 None => MemoryMappingBuilder::wrap(SysUtilMmap::new_protection_fixed( in build_fixed()
201 MemoryMappingBuilder::wrap(SysUtilMmap::from_fd_offset_protection_fixed( in build_fixed()