pub struct TypedMessageSavingHandler<T> { /* private fields */ }Expand description
Typed handler which saves the messages it receives (no downcast needed).
Implementations§
Source§impl<T: Clone + 'static> TypedMessageSavingHandler<T>
impl<T: Clone + 'static> TypedMessageSavingHandler<T>
pub fn new(id: Option<Ustr>) -> Self
pub fn get_messages(&self) -> Vec<T>
Sourcepub fn handler(&self) -> TypedHandler<T>
pub fn handler(&self) -> TypedHandler<T>
Returns a TypedHandler that can be used for subscriptions.
Trait Implementations§
Source§impl<T: Clone> Clone for TypedMessageSavingHandler<T>
impl<T: Clone> Clone for TypedMessageSavingHandler<T>
Source§fn clone(&self) -> TypedMessageSavingHandler<T>
fn clone(&self) -> TypedMessageSavingHandler<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TypedMessageSavingHandler<T>
impl<T: Debug> Debug for TypedMessageSavingHandler<T>
Auto Trait Implementations§
impl<T> Freeze for TypedMessageSavingHandler<T>
impl<T> !RefUnwindSafe for TypedMessageSavingHandler<T>
impl<T> !Send for TypedMessageSavingHandler<T>
impl<T> !Sync for TypedMessageSavingHandler<T>
impl<T> Unpin for TypedMessageSavingHandler<T>
impl<T> UnsafeUnpin for TypedMessageSavingHandler<T>
impl<T> !UnwindSafe for TypedMessageSavingHandler<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more