pub struct DeadLettersSink { /* private fields */ }Implementations§
Source§impl DeadLettersSink
impl DeadLettersSink
pub fn new() -> Self
Sourcepub fn set_filter(&self, f: DeadLetterFilter)
pub fn set_filter(&self, f: DeadLetterFilter)
Replace the active filter. Subsequent push calls consult it.
pub fn filter(&self) -> DeadLetterFilter
pub fn push(&self, dl: DeadLetter)
pub fn drain(&self) -> Vec<DeadLetter>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for DeadLettersSink
impl Clone for DeadLettersSink
Source§fn clone(&self) -> DeadLettersSink
fn clone(&self) -> DeadLettersSink
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 moreAuto Trait Implementations§
impl Freeze for DeadLettersSink
impl !RefUnwindSafe for DeadLettersSink
impl Send for DeadLettersSink
impl Sync for DeadLettersSink
impl Unpin for DeadLettersSink
impl UnsafeUnpin for DeadLettersSink
impl !UnwindSafe for DeadLettersSink
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