Struct zbus::SignalContext
source · [−]pub struct SignalContext<'s> { /* private fields */ }
Expand description
A signal emission context.
For signal emission using the high-level API, you’ll need instances of this type.
See crate::InterfaceRef::signal_context
and crate::dbus_interface
documentation for details and examples of this type in use.
Implementations
sourceimpl<'s> SignalContext<'s>
impl<'s> SignalContext<'s>
sourcepub fn new<P>(conn: &Connection, path: P) -> Result<Self> where
P: TryInto<ObjectPath<'s>>,
P::Error: Into<Error>,
pub fn new<P>(conn: &Connection, path: P) -> Result<Self> where
P: TryInto<ObjectPath<'s>>,
P::Error: Into<Error>,
Create a new signal context for the given connection and object path.
sourcepub fn from_parts(conn: Connection, path: ObjectPath<'s>) -> Self
pub fn from_parts(conn: Connection, path: ObjectPath<'s>) -> Self
Create a new signal context for the given connection and object path.
sourcepub fn connection(&self) -> &Connection
pub fn connection(&self) -> &Connection
Get a reference to the associated connection.
sourcepub fn path(&self) -> &ObjectPath<'s>
pub fn path(&self) -> &ObjectPath<'s>
Get a reference to the associated object path.
sourcepub fn to_owned(&self) -> SignalContext<'static>
pub fn to_owned(&self) -> SignalContext<'static>
Creates an owned clone of self
.
sourcepub fn into_owned(self) -> SignalContext<'static>
pub fn into_owned(self) -> SignalContext<'static>
Creates an owned clone of self
.
Trait Implementations
sourceimpl<'s> Clone for SignalContext<'s>
impl<'s> Clone for SignalContext<'s>
sourcefn clone(&self) -> SignalContext<'s>
fn clone(&self) -> SignalContext<'s>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'s> !RefUnwindSafe for SignalContext<'s>
impl<'s> Send for SignalContext<'s>
impl<'s> Sync for SignalContext<'s>
impl<'s> Unpin for SignalContext<'s>
impl<'s> !UnwindSafe for SignalContext<'s>
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more