Enum matrix_sdk::LoopCtrl
source · [−]pub enum LoopCtrl {
Continue,
Break,
}
Expand description
Enum controlling if a loop running callbacks should continue or abort.
This is mainly used in the sync_with_callback
method, the return value
of the provided callback controls if the sync loop should be exited.
Variants
Continue
Continue running the loop.
Break
Break out of the loop.
Trait Implementations
impl Copy for LoopCtrl
impl Eq for LoopCtrl
impl StructuralEq for LoopCtrl
impl StructuralPartialEq for LoopCtrl
Auto Trait Implementations
impl RefUnwindSafe for LoopCtrl
impl Send for LoopCtrl
impl Sync for LoopCtrl
impl Unpin for LoopCtrl
impl UnwindSafe for LoopCtrl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.