Struct slimproto::capability::Capabilities
source · pub struct Capabilities(/* private fields */);
Expand description
A list of capabilities which is sent to the server when the client announces itself. See SlimpProto for more details.
Implementations§
source§impl Capabilities
impl Capabilities
sourcepub fn add(&mut self, newcap: Capability)
pub fn add(&mut self, newcap: Capability)
Add a new capability to the list. Note that capabilities are sent to the server in the order that they are added to the list.
Normally you will not need to use this method as capabilities are usually added using the add_capability method.
pub fn add_name(&mut self, name: &str)
Trait Implementations§
source§impl Default for Capabilities
impl Default for Capabilities
Auto Trait Implementations§
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
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