Struct wayland_client::imp::proxy::ProxyInner
source · 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
impl ProxyInner
pub(crate) fn is_alive(&self) -> bool
pub(crate) fn is_external(&self) -> bool
pub(crate) fn version(&self) -> u32
pub(crate) fn is_interface<I: Interface>(&self) -> bool
pub(crate) fn id(&self) -> u32
pub(crate) fn user_data(&self) -> &UserData
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>>,
pub(crate) fn equals(&self, other: &ProxyInner) -> bool
pub(crate) fn detach(&mut self)
pub(crate) fn attach(&mut self, queue: &EventQueueInner)
pub(crate) fn c_ptr(&self) -> *mut wl_proxy
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>,
pub(crate) unsafe fn init_from_c_ptr<I: Interface + From<Proxy<I>> + AsRef<Proxy<I>>>( ptr: *mut wl_proxy ) -> Self
fn dead() -> Self
pub(crate) unsafe fn from_c_ptr<I: Interface + From<Proxy<I>> + AsRef<Proxy<I>>>( ptr: *mut wl_proxy ) -> Self
pub(crate) unsafe fn from_external_display(d: *mut wl_proxy) -> ProxyInner
Trait Implementations§
source§impl Clone for ProxyInner
impl Clone for ProxyInner
source§fn clone(&self) -> ProxyInner
fn clone(&self) -> ProxyInner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Drop for ProxyInner
impl Drop for ProxyInner
impl Send for ProxyInner
impl Sync for ProxyInner
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more