Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents transfering progress.
Synopsis
- newtype TransferProgress = TransferProgress (ManagedPtr TransferProgress)
- noTransferProgress :: Maybe TransferProgress
- transferProgressCopy :: (HasCallStack, MonadIO m) => TransferProgress -> m (Maybe TransferProgress)
- transferProgressFree :: (HasCallStack, MonadIO m) => TransferProgress -> m ()
- transferProgressGetIndexedObjects :: (HasCallStack, MonadIO m) => TransferProgress -> m Word32
- transferProgressGetReceivedBytes :: (HasCallStack, MonadIO m) => TransferProgress -> m Word64
- transferProgressGetReceivedObjects :: (HasCallStack, MonadIO m) => TransferProgress -> m Word32
- transferProgressGetTotalObjects :: (HasCallStack, MonadIO m) => TransferProgress -> m Word32
Exported types
newtype TransferProgress Source #
Memory-managed wrapper type.
Instances
BoxedObject TransferProgress Source # | |
Defined in GI.Ggit.Structs.TransferProgress boxedType :: TransferProgress -> IO GType # |
noTransferProgress :: Maybe TransferProgress Source #
A convenience alias for Nothing
:: Maybe
TransferProgress
.
Methods
copy
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m (Maybe TransferProgress) | Returns: a newly allocated |
Copies progress
into a newly allocated TransferProgress
.
free
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m () |
Frees progress
.
getIndexedObjects
transferProgressGetIndexedObjects Source #
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m Word32 | Returns: the indexed objects of the transfer. |
Gets the indexed objects of the transfer.
getReceivedBytes
transferProgressGetReceivedBytes Source #
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m Word64 | Returns: the received bytes of the transfer. |
Gets the received bytes of the transfer.
getReceivedObjects
transferProgressGetReceivedObjects Source #
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m Word32 | Returns: the received objects of the transfer. |
Gets the received objects of the transfer.
getTotalObjects
transferProgressGetTotalObjects Source #
:: (HasCallStack, MonadIO m) | |
=> TransferProgress |
|
-> m Word32 | Returns: the total objects of the transfer. |
Gets the total objects of the transfer.