gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.Checkpoint

Description

No description available in the introspection data.

Since: 1.12

Synopsis

Exported types

newtype Checkpoint Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf Checkpoint o) => IsCheckpoint o Source #

Type class for types which can be safely cast to Checkpoint, for instance with toCheckpoint.

Instances

Instances details
(GObject o, IsDescendantOf Checkpoint o) => IsCheckpoint o Source # 
Instance details

Defined in GI.NM.Objects.Checkpoint

toCheckpoint :: (MonadIO m, IsCheckpoint o) => o -> m Checkpoint Source #

Cast to Checkpoint, for types for which this is known to be safe. For general casts, use castTo.

Methods

getCreated

checkpointGetCreated Source #

Arguments

:: (HasCallStack, MonadIO m, IsCheckpoint a) 
=> a

checkpoint: a Checkpoint

-> m Int64

Returns: the timestamp of checkpoint creation.

Gets the timestamp (in CLOCK_BOOTTIME milliseconds) of checkpoint creation.

Use utilsGetTimestampMsec to obtain current time value suitable for comparing to this value.

Since: 1.12

getDevices

checkpointGetDevices Source #

Arguments

:: (HasCallStack, MonadIO m, IsCheckpoint a) 
=> a

checkpoint: a Checkpoint

-> m [Device]

Returns: the devices list.

The devices that are part of this checkpoint.

Since: 1.12

getRollbackTimeout

checkpointGetRollbackTimeout Source #

Arguments

:: (HasCallStack, MonadIO m, IsCheckpoint a) 
=> a

checkpoint: a Checkpoint

-> m Word32

Returns: the rollback timeout.

Gets the timeout in seconds for automatic rollback.

Since: 1.12

Properties

created

The timestamp (in CLOCK_BOOTTIME milliseconds) of checkpoint creation.

Since: 1.12

getCheckpointCreated :: (MonadIO m, IsCheckpoint o) => o -> m Int64 Source #

Get the value of the “created” property. When overloading is enabled, this is equivalent to

get checkpoint #created

devices

rollbackTimeout

Timeout in seconds for automatic rollback, or zero.

Since: 1.12

getCheckpointRollbackTimeout :: (MonadIO m, IsCheckpoint o) => o -> m Word32 Source #

Get the value of the “rollback-timeout” property. When overloading is enabled, this is equivalent to

get checkpoint #rollbackTimeout