struct Manager {
sender: Threaded<Application>,
enabled: bool,
}
Expand description
Accepts commands controlling the debug mode
Fields
sender: Threaded<Application>
enabled: bool
Implementations
sourceimpl Manager
impl Manager
fn get_enabled(&self) -> bool
fn set_enabled(&mut self, enabled: bool)
Trait Implementations
sourceimpl Interface for Manager
impl Interface for Manager
sourcefn get(&self, property_name: &str) -> Option<Result<OwnedValue>>
fn get(&self, property_name: &str) -> Option<Result<OwnedValue>>
Get a property value. Returns None
if the property doesn’t exist.
sourcefn set(&mut self, property_name: &str, value: &Value<'_>) -> Option<Result<()>>
fn set(&mut self, property_name: &str, value: &Value<'_>) -> Option<Result<()>>
Set a property value. Returns None
if the property doesn’t exist.
sourcefn call(&self, c: &Connection, m: &Message, name: &str) -> Option<Result<u32>>
fn call(&self, c: &Connection, m: &Message, name: &str) -> Option<Result<u32>>
Call a &self
method. Returns None
if the method doesn’t exist.
sourcefn call_mut(
&mut self,
c: &Connection,
m: &Message,
name: &str
) -> Option<Result<u32>>
fn call_mut(
&mut self,
c: &Connection,
m: &Message,
name: &str
) -> Option<Result<u32>>
Call a &mut self
method. Returns None
if the method doesn’t exist.
sourcefn introspect_to_writer(&self, writer: &mut dyn Write, level: usize)
fn introspect_to_writer(&self, writer: &mut dyn Write, level: usize)
Write introspection XML to the writer, with the given indentation level.
Auto Trait Implementations
impl !RefUnwindSafe for Manager
impl Send for Manager
impl !Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more