Module soroban_sdk::xdr::curr
Modules
Structs
DepthLimitedRead
wraps aRead
object and enforces a depth limit to recursive read operations. It maintains adepth_remaining
state tracking remaining allowed recursion depth.DepthLimitedWrite
wraps aWrite
object and enforces a depth limit to recursive write operations. It maintains adepth_remaining
state tracking remaining allowed recursion depth.
Enums
- Error contains all errors returned by functions in this crate. It can be compared via
PartialEq
, however any contained IO errors will only be compared on theirErrorKind
.
Constants
- Defines the maximum depth for recursive calls in
Read/WriteXdr
to prevent stack overflow. XDR_FILES_SHA256
is a list of pairs of source files and their SHA256 hashes.
Traits
DepthLimiter
is a trait designed for managing the depth of recursive operations. It provides a mechanism to limit recursion depth, and defines the behavior upon entering and leaving a recursion level.- Discriminant defines types that may contain a one-of value determined according to the discriminant, and exposes the value of the discriminant for that type, such as in an XDR union.
- Name defines types that assign a static name to their value, such as the name given to an identifier in an XDR enum, or the name given to the case in a union.
- Iter defines types that have variants that can be iterated.