Enum libgir::library::ParameterScope
source · pub enum ParameterScope {
None,
Call,
Async,
Notified,
Forever,
}
Expand description
Annotation describing lifetime requirements / guarantees of callback parameters, that is callback itself and associated user data.
Variants§
None
Parameter is not of callback type.
Call
Used only for the duration of the call.
Can be invoked multiple times.
Async
Used for the duration of the asynchronous call.
Invoked exactly once when asynchronous call completes.
Notified
Used until notified with associated destroy notify parameter.
Can be invoked multiple times.
Forever
Forever scope
Implementations§
Trait Implementations§
source§impl Clone for ParameterScope
impl Clone for ParameterScope
source§fn clone(&self) -> ParameterScope
fn clone(&self) -> ParameterScope
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 ParameterScope
impl Debug for ParameterScope
source§impl Default for ParameterScope
impl Default for ParameterScope
source§fn default() -> ParameterScope
fn default() -> ParameterScope
Returns the “default value” for a type. Read more
source§impl FromStr for ParameterScope
impl FromStr for ParameterScope
source§impl PartialEq for ParameterScope
impl PartialEq for ParameterScope
impl Copy for ParameterScope
impl Eq for ParameterScope
impl StructuralPartialEq for ParameterScope
Auto Trait Implementations§
impl Freeze for ParameterScope
impl RefUnwindSafe for ParameterScope
impl Send for ParameterScope
impl Sync for ParameterScope
impl Unpin for ParameterScope
impl UnwindSafe for ParameterScope
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§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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.