INNER CODE UNIT · Rust

Err

versotile-org/verso · verso/src/lib.rs:324

        if let Err(error) = self.sender.send(ToVersoMessage::GetSize(id, size_type)) {
            self.event_listeners
                .size_response
                .lock()
                .unwrap()
                .remove(&id);
            return Err(error);
        };
        Ok(receiver.recv().unwrap())
    }

    /// Returns the physical size of the window's client area.
    ///
    /// The client area is the content of the window, excluding the title bar and borders.
    pub fn get_inner_size(&self) -> Result<PhysicalSize<u32>, Box<ipc_channel::ErrorKind>> {
        self.get_size(SizeType::Inner)
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…