Enum glib::ControlFlow
source · pub enum ControlFlow {
Continue,
Break,
}
Expand description
Continue calling the closure in the future iterations or drop it.
This is the return type of idle_add
and timeout_add
closures.
ControlFlow::Continue
keeps the closure assigned, to be rerun when appropriate.
ControlFlow::Break
disconnects and drops it.
Continue
and Break
map to G_SOURCE_CONTINUE
(true
) and
G_SOURCE_REMOVE
(false
), respectively.
Variants§
Implementations§
source§impl ControlFlow
impl ControlFlow
Trait Implementations§
source§impl Clone for ControlFlow
impl Clone for ControlFlow
source§fn clone(&self) -> ControlFlow
fn clone(&self) -> ControlFlow
Returns a copy 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 Debug for ControlFlow
impl Debug for ControlFlow
source§impl From<ControlFlow<()>> for ControlFlow
impl From<ControlFlow<()>> for ControlFlow
source§fn from(c: ControlFlow<()>) -> Self
fn from(c: ControlFlow<()>) -> Self
Converts to this type from the input type.
source§impl From<ControlFlow> for ControlFlow<()>
impl From<ControlFlow> for ControlFlow<()>
source§fn from(c: ControlFlow) -> Self
fn from(c: ControlFlow) -> Self
Converts to this type from the input type.
source§impl From<ControlFlow> for Value
impl From<ControlFlow> for Value
source§fn from(v: ControlFlow) -> Self
fn from(v: ControlFlow) -> Self
Converts to this type from the input type.
source§impl From<ControlFlow> for bool
impl From<ControlFlow> for bool
source§fn from(c: ControlFlow) -> Self
fn from(c: ControlFlow) -> Self
Converts to this type from the input type.
source§impl From<bool> for ControlFlow
impl From<bool> for ControlFlow
source§impl PartialEq for ControlFlow
impl PartialEq for ControlFlow
source§fn eq(&self, other: &ControlFlow) -> bool
fn eq(&self, other: &ControlFlow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToValue for ControlFlow
impl ToValue for ControlFlow
impl Copy for ControlFlow
impl Eq for ControlFlow
impl StructuralPartialEq for ControlFlow
Auto Trait Implementations§
impl Freeze for ControlFlow
impl RefUnwindSafe for ControlFlow
impl Send for ControlFlow
impl Sync for ControlFlow
impl Unpin for ControlFlow
impl UnwindSafe for ControlFlow
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.