pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn add_listener_local(&self) -> ClientListenerLocalBuilder<'_>
Sourcepub fn error_cstr(&self, id: u32, res: i32, message: &CStr)
pub fn error_cstr(&self, id: u32, res: i32, message: &CStr)
Sourcepub fn update_properties(&self, properties: &DictRef)
pub fn update_properties(&self, properties: &DictRef)
Sourcepub fn get_permissions(&self, index: u32, num: u32)
pub fn get_permissions(&self, index: u32, num: u32)
Get the client’s permissions.
A permissions event will be emitted.
§Permissions
Requires W and
X permissions on the client.
§Parameters
index: The first index to query, 0 for first
num: The maximum number of items to get
Sourcepub fn update_permissions(&self, permissions: &[Permission])
pub fn update_permissions(&self, permissions: &[Permission])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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