pub(crate) struct ProxyInner {
    internal: Option<Arc<ProxyInternal>>,
    ptr: *mut wl_proxy,
    wrapping: Option<*mut wl_proxy>,
    pub(crate) display: Option<Weak<DisplayGuard>>,
}

Fields§

§internal: Option<Arc<ProxyInternal>>§ptr: *mut wl_proxy§wrapping: Option<*mut wl_proxy>§display: Option<Weak<DisplayGuard>>

Implementations§

source§

impl ProxyInner

source

pub(crate) fn is_alive(&self) -> bool

source

pub(crate) fn is_external(&self) -> bool

source

pub(crate) fn version(&self) -> u32

source

pub(crate) fn is_interface<I: Interface>(&self) -> bool

source

pub(crate) fn id(&self) -> u32

source

pub(crate) fn user_data(&self) -> &UserData

source

pub(crate) fn send<I, J>( &self, msg: I::Request, version: Option<u32> ) -> Option<ProxyInner>where I: Interface + AsRef<Proxy<I>> + From<Proxy<I>>, J: Interface + AsRef<Proxy<J>> + From<Proxy<J>>,

source

pub(crate) fn equals(&self, other: &ProxyInner) -> bool

source

pub(crate) fn detach(&mut self)

source

pub(crate) fn attach(&mut self, queue: &EventQueueInner)

source

pub(crate) fn c_ptr(&self) -> *mut wl_proxy

source

pub fn assign<I, E>(&self, filter: Filter<E>)where I: Interface + AsRef<Proxy<I>> + From<Proxy<I>> + Sync, E: From<(Main<I>, I::Event)> + 'static, I::Event: MessageGroup<Map = ProxyMap>,

source

pub(crate) unsafe fn init_from_c_ptr<I: Interface + From<Proxy<I>> + AsRef<Proxy<I>>>( ptr: *mut wl_proxy ) -> Self

source

fn dead() -> Self

source

pub(crate) unsafe fn from_c_ptr<I: Interface + From<Proxy<I>> + AsRef<Proxy<I>>>( ptr: *mut wl_proxy ) -> Self

source

pub(crate) unsafe fn from_external_display(d: *mut wl_proxy) -> ProxyInner

Trait Implementations§

source§

impl Clone for ProxyInner

source§

fn clone(&self) -> ProxyInner

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Drop for ProxyInner

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for ProxyInner

source§

impl Sync for ProxyInner

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.