pub struct Connection(/* private fields */);Implementations§
Source§impl Connection
impl Connection
pub fn connection(&self) -> &Connection
pub fn disconnected(&self, reason: DisconnectReason, explanation: &str)
pub fn flush(&self) -> Result<()>
pub fn context_type(&self) -> ContextType
pub fn name(&self) -> Option<&str>
pub fn has_interface(&self, interface: &str) -> bool
pub fn interface_version(&self, interface: &str) -> Option<u32>
pub fn last_serial(&self) -> u32
pub fn with_next_serial<T, F: FnOnce(u32) -> T>(&self, cb: F) -> T
pub fn add_seat( &self, name: Option<&str>, capabilities: &[DeviceCapability], ) -> Seat
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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