Skip to main content

Probe

Struct Probe 

Source
pub(crate) struct Probe {
Show 29 fields pub(crate) globals: Vec<(String, u32)>, pub(crate) compositor: Option<WlCompositor>, pub(crate) shm: Option<WlShm>, pub(crate) wm_base: Option<XdgWmBase>, pub(crate) layer_shell: Option<ZwlrLayerShellV1>, pub(crate) screencopy: Option<ZwlrScreencopyManagerV1>, pub(crate) session_lock: Option<ExtSessionLockManagerV1>, pub(crate) idle_notifier: Option<ExtIdleNotifierV1>, pub(crate) idle_inhibit: Option<ZwpIdleInhibitManagerV1>, pub(crate) idle_events: Vec<&'static str>, pub(crate) seat: Option<WlSeat>, pub(crate) layouts: Vec<String>, pub(crate) active_layout: Option<u32>, pub(crate) repeat: Option<(i32, i32)>, pub(crate) pointer_at: Vec<(f64, f64)>, pub(crate) locked: bool, pub(crate) lock_refused: bool, pub(crate) lock_surfaces: Vec<(String, u32, u32)>, pub(crate) decorations: Option<ZxdgDecorationManagerV1>, pub(crate) presentation: Option<WpPresentation>, pub(crate) shot: Option<Shot>, pub(crate) bars_alive: Vec<(WlSurface, ZwlrLayerSurfaceV1)>, pub(crate) outputs: Vec<Screen>, pub(crate) bars: Vec<(String, u32, u32)>, pub(crate) clock: Option<u32>, pub(crate) surface: Option<WlSurface>, pub(crate) configured: bool, pub(crate) presented: Vec<Presented>, pub(crate) discarded: usize,
}

Fields§

§globals: Vec<(String, u32)>

Every global the compositor advertised, with its version.

§compositor: Option<WlCompositor>§shm: Option<WlShm>§wm_base: Option<XdgWmBase>§layer_shell: Option<ZwlrLayerShellV1>§screencopy: Option<ZwlrScreencopyManagerV1>§session_lock: Option<ExtSessionLockManagerV1>§idle_notifier: Option<ExtIdleNotifierV1>§idle_inhibit: Option<ZwpIdleInhibitManagerV1>§idle_events: Vec<&'static str>

Every idled/resumed in order, so a check can assert on the sequence and not just the final state – “it went idle, came back and went idle again” is the claim, and only the sequence carries it.

§seat: Option<WlSeat>§layouts: Vec<String>

The layouts named in the keymap the compositor sent, in order, and which one is active. The only way a client can find out: the keymap arrives as a file descriptor and nothing else describes it.

§active_layout: Option<u32>§repeat: Option<(i32, i32)>§pointer_at: Vec<(f64, f64)>

Where the compositor said the pointer was, in the surface’s own coordinates. The one number a client cannot check any other way: a compositor that reports the wrong place has buttons that miss.

§locked: bool

Whether the compositor said the session is locked, and whether it refused. Exactly one of these is the answer to “did the lock take”.

§lock_refused: bool§lock_surfaces: Vec<(String, u32, u32)>

Each lock surface the compositor configured, by output name and size.

§decorations: Option<ZxdgDecorationManagerV1>§presentation: Option<WpPresentation>§shot: Option<Shot>

What a capture told us to allocate, and how it went.

§bars_alive: Vec<(WlSurface, ZwlrLayerSurfaceV1)>

The bars, kept alive past the layer check.

Not tidiness: the capture check looks for one of them in the top rows of the image, which is the only way a client can tell an upside-down screenshot from a right-way-up one. Dropped at the end of main with everything else.

§outputs: Vec<Screen>

Every output, in the order advertised: the proxy, its name, and the size of its current mode.

§bars: Vec<(String, u32, u32)>

The size each layer surface was configured to, by the output it named.

§clock: Option<u32>

The clock id the compositor says its timestamps are on.

§surface: Option<WlSurface>§configured: bool§presented: Vec<Presented>

One entry per frame the compositor said it had presented.

§discarded: usize

Implementations§

Source§

impl Probe

Source

pub(crate) fn has(&self, name: &str) -> bool

Trait Implementations§

Source§

impl Default for Probe

Source§

fn default() -> Probe

Returns the “default value” for a type. Read more
Source§

impl Dispatch<ExtIdleNotificationV1, ()> for Probe

Source§

fn event( probe: &mut Self, _notification: &ExtIdleNotificationV1, event: Event, _data: &(), _connection: &Connection, _handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ExtIdleNotifierV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ExtIdleNotifierV1, _: <ExtIdleNotifierV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ExtSessionLockManagerV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ExtSessionLockManagerV1, _: <ExtSessionLockManagerV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ExtSessionLockSurfaceV1, String> for Probe

Source§

fn event( probe: &mut Self, surface: &ExtSessionLockSurfaceV1, event: Event, name: &String, _connection: &Connection, _handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ExtSessionLockV1, ()> for Probe

Source§

fn event( probe: &mut Self, _lock: &ExtSessionLockV1, event: Event, _data: &(), _connection: &Connection, _handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlBuffer, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlBuffer, _: <WlBuffer as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlCompositor, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlCompositor, _: <WlCompositor as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlKeyboard, ()> for Probe

Source§

fn event( probe: &mut Self, _keyboard: &WlKeyboard, event: Event, _data: &(), _connection: &Connection, _handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlOutput, ()> for Probe

Source§

fn event( state: &mut Self, output: &WlOutput, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlPointer, ()> for Probe

Source§

fn event( probe: &mut Self, _pointer: &WlPointer, event: Event, _data: &(), _connection: &Connection, _handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlRegistry, ()> for Probe

Source§

fn event( state: &mut Self, registry: &WlRegistry, event: Event, (): &(), _: &Connection, handle: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlSeat, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlSeat, _: <WlSeat as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlShm, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlShm, _: <WlShm as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlShmPool, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlShmPool, _: <WlShmPool as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WlSurface, ()> for Probe

Source§

fn event( _: &mut Self, _: &WlSurface, _: <WlSurface as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WpPresentation, ()> for Probe

Source§

fn event( state: &mut Self, _: &WpPresentation, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<WpPresentationFeedback, ()> for Probe

Source§

fn event( state: &mut Self, _: &WpPresentationFeedback, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<XdgPopup, ()> for Probe

Source§

fn event( _: &mut Self, _: &XdgPopup, _: <XdgPopup as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<XdgPositioner, ()> for Probe

Source§

fn event( _: &mut Self, _: &XdgPositioner, _: <XdgPositioner as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<XdgSurface, ()> for Probe

Source§

fn event( state: &mut Self, xdg: &XdgSurface, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<XdgToplevel, ()> for Probe

Source§

fn event( _: &mut Self, _: &XdgToplevel, _: <XdgToplevel as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<XdgWmBase, ()> for Probe

Source§

fn event( _: &mut Self, base: &XdgWmBase, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwlrLayerShellV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ZwlrLayerShellV1, _: <ZwlrLayerShellV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwlrLayerSurfaceV1, String> for Probe

Source§

fn event( state: &mut Self, bar: &ZwlrLayerSurfaceV1, event: Event, on: &String, _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwlrScreencopyFrameV1, ()> for Probe

Source§

fn event( state: &mut Self, _frame: &ZwlrScreencopyFrameV1, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwlrScreencopyManagerV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ZwlrScreencopyManagerV1, _: <ZwlrScreencopyManagerV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwpIdleInhibitManagerV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ZwpIdleInhibitManagerV1, _: <ZwpIdleInhibitManagerV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZwpIdleInhibitorV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ZwpIdleInhibitorV1, _: <ZwpIdleInhibitorV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZxdgDecorationManagerV1, ()> for Probe

Source§

fn event( _: &mut Self, _: &ZxdgDecorationManagerV1, _: <ZxdgDecorationManagerV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more
Source§

impl Dispatch<ZxdgToplevelDecorationV1, ()> for Probe

Source§

fn event( _state: &mut Self, _decoration: &ZxdgToplevelDecorationV1, event: Event, (): &(), _: &Connection, _: &QueueHandle<Self>, )

Called when an event from the server is processed Read more
§

fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData> ⓘ

Method used to initialize the user-data of objects created by events Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Probe

§

impl !UnwindSafe for Probe

§

impl Freeze for Probe

§

impl Send for Probe

§

impl Sync for Probe

§

impl Unpin for Probe

§

impl UnsafeUnpin for Probe

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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.