Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype TaskCache = TaskCache (ManagedPtr TaskCache)
- class (GObject o, IsDescendantOf TaskCache o) => IsTaskCache o
- toTaskCache :: (MonadIO m, IsTaskCache o) => o -> m TaskCache
- taskCacheEvict :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Ptr () -> m Bool
- taskCacheEvictAll :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> m ()
- taskCacheGetAsync :: (HasCallStack, MonadIO m, IsTaskCache a, IsCancellable b) => a -> Ptr () -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- taskCacheGetFinish :: (HasCallStack, MonadIO m, IsTaskCache a, IsAsyncResult b) => a -> b -> m (Ptr ())
- taskCachePeek :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Ptr () -> m (Maybe Object)
- taskCacheSetName :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Text -> m ()
- constructTaskCacheKeyCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCacheKeyDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCacheKeyEqualFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCacheKeyHashFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCachePopulateCallback :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCachePopulateCallbackData :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCachePopulateCallbackDataDestroy :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCacheTimeToLive :: (IsTaskCache o, MonadIO m) => Int64 -> m (GValueConstruct o)
- constructTaskCacheValueCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
- constructTaskCacheValueDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o)
Exported types
Memory-managed wrapper type.
Instances
Eq TaskCache Source # | |
GObject TaskCache Source # | |
Defined in GI.Dazzle.Objects.TaskCache | |
ManagedPtrNewtype TaskCache Source # | |
Defined in GI.Dazzle.Objects.TaskCache toManagedPtr :: TaskCache -> ManagedPtr TaskCache | |
TypedObject TaskCache Source # | |
Defined in GI.Dazzle.Objects.TaskCache | |
HasParentTypes TaskCache Source # | |
Defined in GI.Dazzle.Objects.TaskCache | |
IsGValue (Maybe TaskCache) Source # | Convert |
Defined in GI.Dazzle.Objects.TaskCache gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TaskCache -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TaskCache) | |
type ParentTypes TaskCache Source # | |
Defined in GI.Dazzle.Objects.TaskCache type ParentTypes TaskCache = '[Object] |
class (GObject o, IsDescendantOf TaskCache o) => IsTaskCache o Source #
Type class for types which can be safely cast to TaskCache
, for instance with toTaskCache
.
Instances
(GObject o, IsDescendantOf TaskCache o) => IsTaskCache o Source # | |
Defined in GI.Dazzle.Objects.TaskCache |
toTaskCache :: (MonadIO m, IsTaskCache o) => o -> m TaskCache Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, evict, evictAll, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, peek, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAsync, getData, getFinish, getProperty, getQdata.
Setters
evict
taskCacheEvict :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Ptr () -> m Bool Source #
No description available in the introspection data.
evictAll
taskCacheEvictAll :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> m () Source #
No description available in the introspection data.
getAsync
taskCacheGetAsync :: (HasCallStack, MonadIO m, IsTaskCache a, IsCancellable b) => a -> Ptr () -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m () Source #
No description available in the introspection data.
getFinish
:: (HasCallStack, MonadIO m, IsTaskCache a, IsAsyncResult b) | |
=> a | |
-> b | |
-> m (Ptr ()) | Returns: The result from the cache. (Can throw |
Finish a call to taskCacheGetAsync
.
peek
:: (HasCallStack, MonadIO m, IsTaskCache a) | |
=> a |
|
-> Ptr () |
|
-> m (Maybe Object) | Returns: A |
setName
taskCacheSetName :: (HasCallStack, MonadIO m, IsTaskCache a) => a -> Text -> m () Source #
No description available in the introspection data.
Properties
keyCopyFunc
No description available in the introspection data.
constructTaskCacheKeyCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “key-copy-func
” property. This is rarely needed directly, but it is used by new
.
keyDestroyFunc
No description available in the introspection data.
constructTaskCacheKeyDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “key-destroy-func
” property. This is rarely needed directly, but it is used by new
.
keyEqualFunc
No description available in the introspection data.
constructTaskCacheKeyEqualFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “key-equal-func
” property. This is rarely needed directly, but it is used by new
.
keyHashFunc
No description available in the introspection data.
constructTaskCacheKeyHashFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “key-hash-func
” property. This is rarely needed directly, but it is used by new
.
populateCallback
No description available in the introspection data.
constructTaskCachePopulateCallback :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “populate-callback
” property. This is rarely needed directly, but it is used by new
.
populateCallbackData
No description available in the introspection data.
constructTaskCachePopulateCallbackData :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “populate-callback-data
” property. This is rarely needed directly, but it is used by new
.
populateCallbackDataDestroy
No description available in the introspection data.
constructTaskCachePopulateCallbackDataDestroy :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “populate-callback-data-destroy
” property. This is rarely needed directly, but it is used by new
.
timeToLive
This is the number of milliseconds before an item should be evicted from the cache.
A value of zero indicates no eviction.
constructTaskCacheTimeToLive :: (IsTaskCache o, MonadIO m) => Int64 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “time-to-live
” property. This is rarely needed directly, but it is used by new
.
valueCopyFunc
No description available in the introspection data.
constructTaskCacheValueCopyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “value-copy-func
” property. This is rarely needed directly, but it is used by new
.
valueDestroyFunc
No description available in the introspection data.
constructTaskCacheValueDestroyFunc :: (IsTaskCache o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “value-destroy-func
” property. This is rarely needed directly, but it is used by new
.