DBus.Internal.Wire

dbus-0.10.13: A client library for the D-Bus IPC system.

Safe Haskell | None
Language | Haskell98

DBus.Internal.Wire

# Documentation

data Endianness #

Constructors

LittleEndian |
BigEndian |

Instances

Eq Endianness # |
Instance details Defined in DBus.Internal.Wire Methods (==) :: Endianness -> Endianness -> Bool # (/=) :: Endianness -> Endianness -> Bool #
Show Endianness # |
Instance details Defined in DBus.Internal.Wire Methods showsPrec :: Int -> Endianness -> ShowS # show :: Endianness -> String # showList :: [Endianness] -> ShowS #

data MarshalError #

Instances

Eq MarshalError # |
Instance details Defined in DBus.Internal.Wire Methods (==) :: MarshalError -> MarshalError -> Bool # (/=) :: MarshalError -> MarshalError -> Bool #
Show MarshalError # |
Instance details Defined in DBus.Internal.Wire Methods showsPrec :: Int -> MarshalError -> ShowS # show :: MarshalError -> String # showList :: [MarshalError] -> ShowS #

marshalErrorMessage :: MarshalError -> String #

data UnmarshalError #

Instances

Eq UnmarshalError # |
Instance details Defined in DBus.Internal.Wire Methods (==) :: UnmarshalError -> UnmarshalError -> Bool # (/=) :: UnmarshalError -> UnmarshalError -> Bool #
Show UnmarshalError # |
Instance details Defined in DBus.Internal.Wire Methods showsPrec :: Int -> UnmarshalError -> ShowS # show :: UnmarshalError -> String # showList :: [UnmarshalError] -> ShowS #

unmarshalErrorMessage :: UnmarshalError -> String #

marshalMessage :: Message a => Endianness -> Serial -> a -> Either MarshalError ByteString #

unmarshalMessage :: ByteString -> Either UnmarshalError ReceivedMessage #

unmarshalMessageM :: Monad m => (Int -> m ByteString) -> m (Either UnmarshalError ReceivedMessage) #