| 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 |
GI.WebKit2.Structs.WebViewSessionState
Description
Handles serialization of a web view's browsing state.
Since: 2.12
Synopsis
- newtype WebViewSessionState = WebViewSessionState (ManagedPtr WebViewSessionState)
- webViewSessionStateNew :: (HasCallStack, MonadIO m) => Bytes -> m WebViewSessionState
- webViewSessionStateRef :: (HasCallStack, MonadIO m) => WebViewSessionState -> m WebViewSessionState
- webViewSessionStateSerialize :: (HasCallStack, MonadIO m) => WebViewSessionState -> m Bytes
- webViewSessionStateUnref :: (HasCallStack, MonadIO m) => WebViewSessionState -> m ()
Exported types
newtype WebViewSessionState Source #
Memory-managed wrapper type.
Constructors
| WebViewSessionState (ManagedPtr WebViewSessionState) |
Instances
Methods
Click to display all available methods, including inherited ones
new
webViewSessionStateNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Bytes |
|
| -> m WebViewSessionState | Returns: a new |
Creates a new WebViewSessionState from serialized data.
Since: 2.12
ref
webViewSessionStateRef Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => WebViewSessionState |
|
| -> m WebViewSessionState | Returns: The passed in |
Atomically increments the reference count of state by one.
This function is MT-safe and may be called from any thread.
Since: 2.12
serialize
webViewSessionStateSerialize Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => WebViewSessionState |
|
| -> m Bytes | Returns: a |
Serializes a WebViewSessionState.
Since: 2.12
unref
webViewSessionStateUnref Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => WebViewSessionState |
|
| -> m () |
Atomically decrements the reference count of state by one.
If the
reference count drops to 0, all memory allocated by the WebViewSessionState is
released. This function is MT-safe and may be called from any thread.
Since: 2.12