[][src]Enum headless_chrome::protocol::browser::Bounds

pub enum Bounds {
    Minimized,
    Maximized,
    Fullscreen,
    Normal {
        left: Option<JsUInt>,
        top: Option<JsUInt>,
        width: Option<JsUInt>,
        height: Option<JsUInt>,
    },
}

Variants

MinimizedMaximizedFullscreenNormal

Fields of Normal

left: Option<JsUInt>

The offset from the left edge of the screen to the window in pixels.

top: Option<JsUInt>

The offset from the top edge of the screen to the window in pixels.

width: Option<JsUInt>

The window width in pixels.

height: Option<JsUInt>

THe window height in pixels.

Methods

impl Bounds[src]

pub fn normal() -> Self[src]

Set normal window state without setting any coordinates

Trait Implementations

impl Into<Bounds> for Bounds[src]

impl Clone for Bounds[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Bounds[src]

Auto Trait Implementations

impl Unpin for Bounds

impl Send for Bounds

impl Sync for Bounds

impl UnwindSafe for Bounds

impl RefUnwindSafe for Bounds

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.