Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
simple_rpc
v0.1.0
SimpleRpc
Error
Proto
RawClient
Result
Server
IOMsgpack
RawMsgpack
Built with Crystal 1.9.2
2023-10-08 11:49:57 UTC
struct
SimpleRpc::Result(T)
SimpleRpc::Result(T)
Struct
Value
Object
Defined in:
simple_rpc/result.cr
Constructors
.new
(error : Error, message : String | Nil =
nil
, value : T | Nil =
nil
)
Class Method Summary
.from
(io : IO)
Instance Method Summary
#error
#message
#value
Constructor Detail
def self.
new
(error :
Error
, message : String | Nil =
nil
, value : T | Nil =
nil
)
#
[
View source
]
Class Method Detail
def self.
from
(io : IO)
#
[
View source
]
Instance Method Detail
def
error
#
[
View source
]
def
message
#
[
View source
]
def
value
#
[
View source
]