Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
simple_rpc
v1.9.1
SimpleRpc
CannotConnectError
Client
Mode
CommandTimeoutError
ConnectionError
ConnectionLostError
Context
IOMsgpack
RawMsgpack
RawSocketResponse
Errors
PoolTimeoutError
Proto
ProtocallError
Result
RuntimeError
Server
ServerProxy
TypeCastError
Built with Crystal 1.9.2
2023-10-08 10:30:55 UTC
struct
SimpleRpc::Result(T)
SimpleRpc::Result(T)
Struct
Value
Object
Defined in:
simple_rpc/result.cr
Constructors
.new
(error : Errors | Nil =
nil
, value : T | Nil =
nil
)
Instance Method Summary
#error
#error!
#message!
#ok?
#value
#value!
Constructor Detail
def self.
new
(error :
Errors
| Nil =
nil
, value : T | Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
error
#
[
View source
]
def
error!
#
[
View source
]
def
message!
#
[
View source
]
def
ok?
#
[
View source
]
def
value
#
[
View source
]
def
value!
#
[
View source
]