Skip to main content

Taskbar

Struct Taskbar 

Source
pub struct Taskbar<R: Runtime> { /* private fields */ }
Expand description

Taskbar plugin state and high-level Rust API.

Implementations§

Source§

impl<R: Runtime> Taskbar<R>

Source

pub fn config(&self) -> &Config

Returns the active plugin configuration.

Source

pub fn initialize(&self, window: &WebviewWindow<R>) -> Result<()>

Explicitly initializes taskbar thumbnail controls for the provided webview window.

Source

pub fn set_playback_state( &self, window: &WebviewWindow<R>, is_playing: bool, ) -> Result<()>

Updates play/pause visual state on taskbar thumbnail buttons.

Source

pub fn set_navigation_enabled( &self, window: &WebviewWindow<R>, previous_enabled: bool, next_enabled: bool, ) -> Result<()>

Updates previous/next enabled state on taskbar thumbnail buttons.

Source

pub const fn is_supported() -> bool

Returns whether native taskbar thumbnail behavior is supported.

Auto Trait Implementations§

§

impl<R> !Freeze for Taskbar<R>

§

impl<R> RefUnwindSafe for Taskbar<R>

§

impl<R> Send for Taskbar<R>

§

impl<R> Sync for Taskbar<R>

§

impl<R> Unpin for Taskbar<R>

§

impl<R> UnsafeUnpin for Taskbar<R>

§

impl<R> UnwindSafe for Taskbar<R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.