#[non_exhaustive]pub enum ScopeType {
Invalid,
Call,
Async,
Notified,
Forever,
}
Expand description
Scope type of a GIArgInfo
representing callback, determines how the
callback is invoked and is used to decided when the invoke structs
can be freed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
The argument is not of callback type.
Call
The callback and associated user_data is only used during the call to this function.
Async
The callback and associated user_data is only used until the callback is invoked, and the callback. is invoked always exactly once.
Notified
The callback and associated user_data is used until the caller is notfied via the destroy_notify.
Forever
The callback and associated user_data is used until the process terminates
Trait Implementations§
Source§impl Ord for ScopeType
impl Ord for ScopeType
Source§impl PartialOrd for ScopeType
impl PartialOrd for ScopeType
impl Copy for ScopeType
impl Eq for ScopeType
impl StructuralPartialEq for ScopeType
Auto Trait Implementations§
impl Freeze for ScopeType
impl RefUnwindSafe for ScopeType
impl Send for ScopeType
impl Sync for ScopeType
impl Unpin for ScopeType
impl UnwindSafe for ScopeType
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