Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data SessionMode Source #
Instances
Eq SessionMode Source # | |
Defined in Metro.Node (==) :: SessionMode -> SessionMode -> Bool # (/=) :: SessionMode -> SessionMode -> Bool # | |
Show SessionMode Source # | |
Defined in Metro.Node showsPrec :: Int -> SessionMode -> ShowS # show :: SessionMode -> String # showList :: [SessionMode] -> ShowS # |
data NodeT u nid k rpkt tp m a Source #
Instances
FromConn (NodeT u nid k rpkt) Source # | |
Monad m => MonadReader (NodeEnv u nid k rpkt) (NodeT u nid k rpkt tp m) Source # | |
MonadTrans (NodeT u nid k rpkt tp) Source # | |
Defined in Metro.Node | |
Monad m => Monad (NodeT u nid k rpkt tp m) Source # | |
Defined in Metro.Node | |
Functor m => Functor (NodeT u nid k rpkt tp m) Source # | |
Applicative m => Applicative (NodeT u nid k rpkt tp m) Source # | |
Defined in Metro.Node pure :: a -> NodeT u nid k rpkt tp m a # (<*>) :: NodeT u nid k rpkt tp m (a -> b) -> NodeT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m b # liftA2 :: (a -> b -> c) -> NodeT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m b -> NodeT u nid k rpkt tp m c # (*>) :: NodeT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m b -> NodeT u nid k rpkt tp m b # (<*) :: NodeT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m b -> NodeT u nid k rpkt tp m a # | |
MonadIO m => MonadIO (NodeT u nid k rpkt tp m) Source # | |
Defined in Metro.Node | |
MonadUnliftIO m => MonadUnliftIO (NodeT u nid k rpkt tp m) Source # | |
Defined in Metro.Node |
setSessionMode :: SessionMode -> NodeEnv u nid k rpkt -> NodeEnv u nid k rpkt Source #
startNodeT :: (MonadUnliftIO m, Transport tp, RecvPacket rpkt, GetPacketId k rpkt, Eq k, Hashable k) => SessionT u nid k rpkt tp m () -> NodeT u nid k rpkt tp m () Source #
startNodeT_ :: (MonadUnliftIO m, Transport tp, RecvPacket rpkt, GetPacketId k rpkt, Eq k, Hashable k) => (rpkt -> m Bool) -> SessionT u nid k rpkt tp m () -> NodeT u nid k rpkt tp m () Source #
withSessionT :: (MonadUnliftIO m, Eq k, Hashable k) => Maybe Int64 -> SessionT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m a Source #
request :: (MonadUnliftIO m, Transport tp, SendPacket spkt, SetPacketId k spkt, Eq k, Hashable k) => Maybe Int64 -> spkt -> NodeT u nid k rpkt tp m (Maybe rpkt) Source #
requestAndRetry :: (MonadUnliftIO m, Transport tp, SendPacket spkt, SetPacketId k spkt, Eq k, Hashable k) => Maybe Int64 -> Maybe Int -> spkt -> NodeT u nid k rpkt tp m (Maybe rpkt) Source #
newSessionEnv :: (MonadIO m, Eq k, Hashable k) => Maybe Int64 -> k -> NodeT u nid k rpkt tp m (SessionEnv u nid k rpkt) Source #
nextSessionId :: MonadIO m => NodeT u nid k rpkt tp m k Source #
runSessionT_ :: Monad m => SessionEnv u nid k rpkt -> SessionT u nid k rpkt tp m a -> NodeT u nid k rpkt tp m a Source #