scodec-core
scodec-core
scodec
Attempt
Attempt
Successful
Failure
Codec
Codec
given_Transform_Codec
DecodeResult
Decoder
Decoder
given_Transform_Decoder
DecoderFunctions
DropUnits
Encoder
Encoder
given_Transform_Encoder
EncoderFunctions
Err
Err
General
InsufficientBits
MatchingDiscriminatorNotFound
Composite
Iso
Iso
SizeBound
SizeBound
Transform
scodec.codecs
ChecksumCodec
Mismatch
ChecksumFactory
ChecksumMismatch
CipherFactory
CipherFactory
DeMultiplexer
DiscriminatorCodec
KnownDiscriminatorType
UnknownDiscriminator
MultiplexedCodec
NeedDiscriminatorCodec
SignatureFactory
SignatureSigner
Signer
SignerFactory
scodec-core
/
scodec
/
Attempt
/
Failure
Failure
case
class
Failure
(cause:
Err
) extends
Attempt
[
Nothing
]
Failed attempt.
Failed attempt.
Graph
Supertypes
class
Attempt
[
Nothing
]
trait
Serializable
trait
Product
trait
Equals
class
Object
trait
Matchable
class
Any
Value members
Value members
Concrete methods
def
flatMap
[B](f:
Nothing
=>
Attempt
[B]):
Attempt
[B]
def
flatten
[B](using ev:
Nothing
<:<
Attempt
[B]):
Attempt
[B]
def
fold
[B](ifFailure:
Err
=> B, ifSuccessful:
Nothing
=> B): B
def
getOrElse
[B](default: => B): B
def
isSuccessful
:
Boolean
def
map
[B](f:
Nothing
=> B):
Attempt
[B]
def
mapErr
(f:
Err
=>
Err
):
Attempt
[
Nothing
]
def
orElse
[B](fallback: =>
Attempt
[B]):
Attempt
[B]
def
recover
[B](f:
PartialFunction
[
Err
, B]):
Attempt
[B]
def
recoverWith
[B](f:
PartialFunction
[
Err
,
Attempt
[B]]):
Attempt
[B]
def
require
:
Nothing
def
toEither
:
Left
[
Err
,
Nothing
]
def
toOption
:
None
def
toTry
:
Try
[
Nothing
]
Inherited methods
def
isFailure
:
Boolean
True if attempt was not successful.
True if attempt was not successful.
Inherited from
Attempt
def
productElementNames
:
Iterator
[
String
]
Inherited from
Product
def
productIterator
:
Iterator
[
Any
]
Inherited from
Product