Struct piston_window::NoWindow[][src]

pub struct NoWindow { /* fields omitted */ }

A window without user interface, often used in server event loops.

This structure holds just enough state to return values that were set. The size can be changed because the event loop does not emit Render events when the width or height is zero.

Implementations

impl NoWindow[src]

pub fn new(settings: &WindowSettings) -> NoWindow[src]

Creates a new NoWindow.

Trait Implementations

impl AdvancedWindow for NoWindow[src]

impl BuildFromWindowSettings for NoWindow[src]

pub fn build_from_window_settings(
    settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>
[src]

Errors

This function will always return without error.

impl Window for NoWindow[src]

Auto Trait Implementations

impl RefUnwindSafe for NoWindow

impl Send for NoWindow

impl Sync for NoWindow

impl Unpin for NoWindow

impl UnwindSafe for NoWindow

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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.