pub struct NativeMenuBar(/* private fields */);Expand description
No native menu bar on this platform: every call reports Unsupported (draw the spec in the
window instead).
Implementations§
Source§impl NativeMenuBar
impl NativeMenuBar
pub fn install(_spec: &MenuSpec, _waker: Waker) -> Result<Self>
pub fn attach_window(&self, _window: &impl HasWindowHandle) -> Result<()>
pub fn update(&mut self, _spec: &MenuSpec) -> Result<Update>
pub fn try_recv(&self) -> Option<String>
pub fn drain(&self) -> Vec<String>
Auto Trait Implementations§
impl Freeze for NativeMenuBar
impl RefUnwindSafe for NativeMenuBar
impl Send for NativeMenuBar
impl Sync for NativeMenuBar
impl Unpin for NativeMenuBar
impl UnsafeUnpin for NativeMenuBar
impl UnwindSafe for NativeMenuBar
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