struct WlVfd {
socket: Option<ScmSocket<UnixStream>>,
guest_shared_memory: Option<SharedMemory>,
remote_pipe: Option<File>,
local_pipe: Option<(u32, File)>,
slot: Option<(u64, VmRequester)>,
is_dmabuf: bool,
map_info: u32,
fence: Option<File>,
is_fence: bool,
}Fields§
§socket: Option<ScmSocket<UnixStream>>§remote_pipe: Option<File>§local_pipe: Option<(u32, File)>§slot: Option<(u64, VmRequester)>§is_dmabuf: bool§map_info: u32§fence: Option<File>§is_fence: boolImplementations§
Source§impl WlVfd
impl WlVfd
fn connect<P: AsRef<Path>>(path: P) -> Result<WlVfd, WlError>
fn allocate(vm: VmRequester, size: u64) -> Result<WlVfd, WlError>
fn dmabuf( vm: VmRequester, width: u32, height: u32, format: u32, ) -> Result<(WlVfd, GpuMemoryDesc), WlError>
fn dmabuf_sync(&self, flags: u32) -> Result<(), WlError>
fn pipe_remote_read_local_write() -> Result<WlVfd, WlError>
fn pipe_remote_write_local_read() -> Result<WlVfd, WlError>
fn from_file(vm: VmRequester, descriptor: File) -> Result<WlVfd, WlError>
fn flags(&self, use_transition_flags: bool) -> u32
fn offset(&self) -> Option<u64>
fn size(&self) -> Option<u64>
fn send_descriptor(&self) -> Option<RawDescriptor>
fn wait_descriptor(&self) -> Option<&dyn AsRawDescriptor>
fn send( &mut self, rds: &[RawDescriptor], data: &mut Reader, ) -> Result<WlResp<'_>, WlError>
fn recv(&mut self, in_file_queue: &mut Vec<File>) -> Result<Vec<u8>, WlError>
fn close_remote(&mut self)
fn close(&mut self) -> Result<(), WlError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WlVfd
impl !RefUnwindSafe for WlVfd
impl !Send for WlVfd
impl !Sync for WlVfd
impl Unpin for WlVfd
impl !UnwindSafe for WlVfd
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