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 a blob stream object.
Synopsis
- newtype BlobOutputStream = BlobOutputStream (ManagedPtr BlobOutputStream)
- class (GObject o, IsDescendantOf BlobOutputStream o) => IsBlobOutputStream o
- toBlobOutputStream :: (MonadIO m, IsBlobOutputStream o) => o -> m BlobOutputStream
- noBlobOutputStream :: Maybe BlobOutputStream
- blobOutputStreamGetId :: (HasCallStack, MonadIO m, IsBlobOutputStream a) => a -> m (Maybe OId)
- constructBlobOutputStreamRepository :: (IsBlobOutputStream o, IsRepository a) => a -> IO (GValueConstruct o)
Exported types
newtype BlobOutputStream Source #
Memory-managed wrapper type.
BlobOutputStream (ManagedPtr BlobOutputStream) |
Instances
GObject BlobOutputStream Source # | |
Defined in GI.Ggit.Objects.BlobOutputStream gobjectType :: IO GType | |
HasParentTypes BlobOutputStream Source # | |
Defined in GI.Ggit.Objects.BlobOutputStream | |
type ParentTypes BlobOutputStream Source # | |
Defined in GI.Ggit.Objects.BlobOutputStream |
class (GObject o, IsDescendantOf BlobOutputStream o) => IsBlobOutputStream o Source #
Type class for types which can be safely cast to BlobOutputStream
, for instance with toBlobOutputStream
.
Instances
(GObject o, IsDescendantOf BlobOutputStream o) => IsBlobOutputStream o Source # | |
Defined in GI.Ggit.Objects.BlobOutputStream |
toBlobOutputStream :: (MonadIO m, IsBlobOutputStream o) => o -> m BlobOutputStream Source #
Cast to BlobOutputStream
, for types for which this is known to be safe. For general casts, use castTo
.
noBlobOutputStream :: Maybe BlobOutputStream Source #
A convenience alias for Nothing
:: Maybe
BlobOutputStream
.
Methods
getId
blobOutputStreamGetId Source #
:: (HasCallStack, MonadIO m, IsBlobOutputStream a) | |
=> a |
|
-> m (Maybe OId) |
Get the id of the written blob. The blob id is only available after the
stream has been properly closed. If an error occurred while writing the blob,
the Nothing
is returned and error
is set accordingly.
Properties
repository
No description available in the introspection data.
constructBlobOutputStreamRepository :: (IsBlobOutputStream o, IsRepository a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “repository
” property. This is rarely needed directly, but it is used by new
.