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 |
Represents a git push options.
Synopsis
- newtype PushOptions = PushOptions (ManagedPtr PushOptions)
- class (GObject o, IsDescendantOf PushOptions o) => IsPushOptions o
- toPushOptions :: (MonadIO m, IsPushOptions o) => o -> m PushOptions
- pushOptionsGetParallelism :: (HasCallStack, MonadIO m, IsPushOptions a) => a -> m Int32
- pushOptionsGetRemoteCallbacks :: (HasCallStack, MonadIO m, IsPushOptions a) => a -> m (Maybe RemoteCallbacks)
- pushOptionsNew :: (HasCallStack, MonadIO m) => m (Maybe PushOptions)
- pushOptionsSetParallelism :: (HasCallStack, MonadIO m, IsPushOptions a) => a -> Int32 -> m ()
- pushOptionsSetRemoteCallbacks :: (HasCallStack, MonadIO m, IsPushOptions a, IsRemoteCallbacks b) => a -> b -> m ()
- clearPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m ()
- constructPushOptionsCallbacks :: (IsPushOptions o, MonadIO m, IsRemoteCallbacks a) => a -> m (GValueConstruct o)
- getPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m (Maybe RemoteCallbacks)
- setPushOptionsCallbacks :: (MonadIO m, IsPushOptions o, IsRemoteCallbacks a) => o -> a -> m ()
- constructPushOptionsParallelism :: (IsPushOptions o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> m Int32
- setPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> Int32 -> m ()
Exported types
newtype PushOptions Source #
Memory-managed wrapper type.
Instances
Eq PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions (==) :: PushOptions -> PushOptions -> Bool # (/=) :: PushOptions -> PushOptions -> Bool # | |
GObject PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions | |
ManagedPtrNewtype PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions | |
TypedObject PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions | |
HasParentTypes PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions | |
IsGValue (Maybe PushOptions) Source # | Convert |
Defined in GI.Ggit.Objects.PushOptions gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe PushOptions -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe PushOptions) # | |
type ParentTypes PushOptions Source # | |
Defined in GI.Ggit.Objects.PushOptions |
class (GObject o, IsDescendantOf PushOptions o) => IsPushOptions o Source #
Type class for types which can be safely cast to PushOptions
, for instance with toPushOptions
.
Instances
(GObject o, IsDescendantOf PushOptions o) => IsPushOptions o Source # | |
Defined in GI.Ggit.Objects.PushOptions |
toPushOptions :: (MonadIO m, IsPushOptions o) => o -> m PushOptions Source #
Cast to PushOptions
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getParallelism, getProperty, getQdata, getRemoteCallbacks.
Setters
setData, setDataFull, setParallelism, setProperty, setRemoteCallbacks.
getParallelism
pushOptionsGetParallelism Source #
:: (HasCallStack, MonadIO m, IsPushOptions a) | |
=> a |
|
-> m Int32 | Returns: the number of parallel threads, or 0 for auto-detect. |
Get the number of parallel threads to use when creating the pack file to push. The special value 0 indicates that the number of threads will be automatically detected.
getRemoteCallbacks
pushOptionsGetRemoteCallbacks Source #
:: (HasCallStack, MonadIO m, IsPushOptions a) | |
=> a |
|
-> m (Maybe RemoteCallbacks) | Returns: the object's id or |
gets the remote callbacks object
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe PushOptions) | Returns: a |
Create a new push options object.
setParallelism
pushOptionsSetParallelism Source #
:: (HasCallStack, MonadIO m, IsPushOptions a) | |
=> a |
|
-> Int32 |
|
-> m () |
Set the number of parallel threads to use when creating the pack file
to push. The special value 0 can be specified for parallelism
indicating that
the number of threads will be automatically detected.
setRemoteCallbacks
pushOptionsSetRemoteCallbacks Source #
:: (HasCallStack, MonadIO m, IsPushOptions a, IsRemoteCallbacks b) | |
=> a |
|
-> b |
|
-> m () |
Set the remote callbacks for the push options
Properties
callbacks
No description available in the introspection data.
clearPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m () Source #
Set the value of the “callbacks
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#callbacks
constructPushOptionsCallbacks :: (IsPushOptions o, MonadIO m, IsRemoteCallbacks a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “callbacks
” property. This is rarely needed directly, but it is used by new
.
getPushOptionsCallbacks :: (MonadIO m, IsPushOptions o) => o -> m (Maybe RemoteCallbacks) Source #
Get the value of the “callbacks
” property.
When overloading is enabled, this is equivalent to
get
pushOptions #callbacks
setPushOptionsCallbacks :: (MonadIO m, IsPushOptions o, IsRemoteCallbacks a) => o -> a -> m () Source #
Set the value of the “callbacks
” property.
When overloading is enabled, this is equivalent to
set
pushOptions [ #callbacks:=
value ]
parallelism
No description available in the introspection data.
constructPushOptionsParallelism :: (IsPushOptions o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “parallelism
” property. This is rarely needed directly, but it is used by new
.
getPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> m Int32 Source #
Get the value of the “parallelism
” property.
When overloading is enabled, this is equivalent to
get
pushOptions #parallelism
setPushOptionsParallelism :: (MonadIO m, IsPushOptions o) => o -> Int32 -> m () Source #
Set the value of the “parallelism
” property.
When overloading is enabled, this is equivalent to
set
pushOptions [ #parallelism:=
value ]