[][src]Struct notify_rust::Image

pub struct Image { /* fields omitted */ }

Image representation for images. Send via Notification::image_data()

Methods

impl NotificationImage[src]

pub fn from_rgb(width: i32, height: i32, data: Vec<u8>) -> Result<Self, Error>[src]

Creates an image from a raw vector of bytes

pub fn open<T: AsRef<Path> + Sized>(path: T) -> Result<Self, Error>[src]

Attempts to open the given path as image

Trait Implementations

impl Clone for NotificationImage[src]

impl Eq for NotificationImage[src]

impl PartialEq<NotificationImage> for NotificationImage[src]

impl Debug for NotificationImage[src]

impl TryFrom<DynamicImage> for NotificationImage[src]

type Error = Error

The type returned in the event of a conversion error.

impl Hash for NotificationImage[src]

impl StructuralPartialEq for NotificationImage[src]

impl StructuralEq for NotificationImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T