| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.FileTransfer.Types
Documentation
data FileHeader Source #
Constructors
| FileHeader | |
Instances
| Show FileHeader Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> FileHeader -> ShowS show :: FileHeader -> String showList :: [FileHeader] -> ShowS | |
| Eq FileHeader Source # | |
Defined in Simplex.FileTransfer.Types | |
| Encoding FileHeader Source # | |
Defined in Simplex.FileTransfer.Types Methods smpEncode :: FileHeader -> ByteString Source # smpDecode :: ByteString -> Either String FileHeader Source # smpP :: Parser FileHeader Source # | |
type DBRcvFileId = Int64 Source #
Constructors
| RcvFile | |
Fields
| |
data RcvFileStatus Source #
Constructors
| RFSReceiving | |
| RFSReceived | |
| RFSDecrypting | |
| RFSComplete | |
| RFSError |
Instances
| Show RcvFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> RcvFileStatus -> ShowS show :: RcvFileStatus -> String showList :: [RcvFileStatus] -> ShowS | |
| Eq RcvFileStatus Source # | |
Defined in Simplex.FileTransfer.Types | |
| TextEncoding RcvFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods textEncode :: RcvFileStatus -> Text Source # textDecode :: Text -> Maybe RcvFileStatus Source # | |
| FromField RcvFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods fromField :: FieldParser RcvFileStatus # | |
| ToField RcvFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods toField :: RcvFileStatus -> SQLData # | |
data RcvFileChunk Source #
Constructors
| RcvFileChunk | |
Fields
| |
Instances
| Show RcvFileChunk Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> RcvFileChunk -> ShowS show :: RcvFileChunk -> String showList :: [RcvFileChunk] -> ShowS | |
data RcvFileChunkReplica Source #
Constructors
| RcvFileChunkReplica | |
Fields
| |
Instances
| Show RcvFileChunkReplica Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> RcvFileChunkReplica -> ShowS show :: RcvFileChunkReplica -> String showList :: [RcvFileChunkReplica] -> ShowS | |
data RcvFileRedirect Source #
Constructors
| RcvFileRedirect | |
Fields | |
Instances
| Show RcvFileRedirect Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> RcvFileRedirect -> ShowS show :: RcvFileRedirect -> String showList :: [RcvFileRedirect] -> ShowS | |
type DBSndFileId = Int64 Source #
Constructors
| SndFile | |
Fields
| |
data SndFileStatus Source #
Constructors
| SFSNew | |
| SFSEncrypting | |
| SFSEncrypted | |
| SFSUploading | |
| SFSComplete | |
| SFSError |
Instances
| Show SndFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> SndFileStatus -> ShowS show :: SndFileStatus -> String showList :: [SndFileStatus] -> ShowS | |
| Eq SndFileStatus Source # | |
Defined in Simplex.FileTransfer.Types | |
| TextEncoding SndFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods textEncode :: SndFileStatus -> Text Source # textDecode :: Text -> Maybe SndFileStatus Source # | |
| FromField SndFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods fromField :: FieldParser SndFileStatus # | |
| ToField SndFileStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods toField :: SndFileStatus -> SQLData # | |
data SndFileChunk Source #
Constructors
| SndFileChunk | |
Fields
| |
Instances
| Show SndFileChunk Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> SndFileChunk -> ShowS show :: SndFileChunk -> String showList :: [SndFileChunk] -> ShowS | |
data NewSndChunkReplica Source #
Constructors
| NewSndChunkReplica | |
Fields | |
Instances
| Show NewSndChunkReplica Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> NewSndChunkReplica -> ShowS show :: NewSndChunkReplica -> String showList :: [NewSndChunkReplica] -> ShowS | |
data SndFileChunkReplica Source #
Constructors
| SndFileChunkReplica | |
Fields
| |
Instances
| Show SndFileChunkReplica Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> SndFileChunkReplica -> ShowS show :: SndFileChunkReplica -> String showList :: [SndFileChunkReplica] -> ShowS | |
data SndFileReplicaStatus Source #
Constructors
| SFRSCreated | |
| SFRSUploaded |
Instances
| Show SndFileReplicaStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> SndFileReplicaStatus -> ShowS show :: SndFileReplicaStatus -> String showList :: [SndFileReplicaStatus] -> ShowS | |
| Eq SndFileReplicaStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods (==) :: SndFileReplicaStatus -> SndFileReplicaStatus -> Bool (/=) :: SndFileReplicaStatus -> SndFileReplicaStatus -> Bool | |
| TextEncoding SndFileReplicaStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods textEncode :: SndFileReplicaStatus -> Text Source # textDecode :: Text -> Maybe SndFileReplicaStatus Source # | |
| FromField SndFileReplicaStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods fromField :: FieldParser SndFileReplicaStatus # | |
| ToField SndFileReplicaStatus Source # | |
Defined in Simplex.FileTransfer.Types Methods toField :: SndFileReplicaStatus -> SQLData # | |
data DeletedSndChunkReplica Source #
Constructors
| DeletedSndChunkReplica | |
Fields
| |
Instances
| Show DeletedSndChunkReplica Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> DeletedSndChunkReplica -> ShowS show :: DeletedSndChunkReplica -> String showList :: [DeletedSndChunkReplica] -> ShowS | |
data SentRecipientReplica Source #
Constructors
| SentRecipientReplica | |
Fields
| |
data FileErrorType Source #
Constructors
| NOT_APPROVED | cannot proceed with download from not approved relays without proxy |
| SIZE | max file size exceeded |
| REDIRECT | bad redirect data |
Fields
| |
| FILE_IO | file crypto error |
Fields
| |
| NO_FILE | file not found or was deleted |
Instances
| FromJSON FileErrorType Source # | |
Defined in Simplex.FileTransfer.Types Methods parseJSON :: Value -> Parser FileErrorType parseJSONList :: Value -> Parser [FileErrorType] omittedField :: Maybe FileErrorType | |
| ToJSON FileErrorType Source # | |
Defined in Simplex.FileTransfer.Types Methods toJSON :: FileErrorType -> Value toEncoding :: FileErrorType -> Encoding toJSONList :: [FileErrorType] -> Value toEncodingList :: [FileErrorType] -> Encoding omitField :: FileErrorType -> Bool | |
| Show FileErrorType Source # | |
Defined in Simplex.FileTransfer.Types Methods showsPrec :: Int -> FileErrorType -> ShowS show :: FileErrorType -> String showList :: [FileErrorType] -> ShowS | |
| Eq FileErrorType Source # | |
Defined in Simplex.FileTransfer.Types | |
| StrEncoding FileErrorType Source # | |
Defined in Simplex.FileTransfer.Types Methods strEncode :: FileErrorType -> ByteString Source # strDecode :: ByteString -> Either String FileErrorType Source # strP :: Parser FileErrorType Source # | |
authTagSize :: Int64 Source #
sndFileEncPath :: FilePath -> FilePath Source #
sndChunkSize :: SndFileChunk -> Word32 Source #