[−][src]Struct lifeline::LifelineSender
A wrapper which provides a stable Sender implementation, returned by bus.tx::<Msg>(). Can be unwrapped with into_inner()
Implementations
impl<T, S> LifelineSender<T, S>
[src]
pub fn new(inner: S) -> Self
[src]
pub fn log(self) -> Self
[src]
Enables trace-level logging for messages sent over the channel
pub fn inner(&self) -> &S
[src]
Returns a reference to the inner sender
pub fn inner_mut(&mut self) -> &mut S
[src]
Returns a mutable reference to the inner sender
pub fn into_inner(self) -> S
[src]
Consumes the wrapper, and returns the inner sender
Trait Implementations
impl<T, S> Clone for LifelineSender<T, S> where
S: Clone,
[src]
S: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, S: Debug> Debug for LifelineSender<T, S>
[src]
impl<T, S> Sender<T> for LifelineSender<T, S> where
T: Send + Debug,
S: Send + Sender<T>,
[src]
T: Send + Debug,
S: Send + Sender<T>,
Auto Trait Implementations
impl<T, S> RefUnwindSafe for LifelineSender<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for LifelineSender<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for LifelineSender<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for LifelineSender<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for LifelineSender<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,