Module: Prosody::NativeValueOperations
- Included in:
- NativeJsonValueState, NativeMessageValueState
- Defined in:
- lib/prosody/native_stubs.rb
Overview
Native single-value keyed-state handle, vended by the context and wrapped by ValueState. Every operation is fiber-yield async: it crosses the bridge and yields the fiber while the Rust core drives the operation.
Instance Method Summary collapse
-
#clear ⇒ void
Buffers a clear of the value.
-
#commit ⇒ nil
Durably commits the buffered operations mid-handler.
-
#get ⇒ Object?
Reads the current value.
- #initialize ⇒ Object
-
#rollback ⇒ nil
Discards the buffered uncommitted operations.
-
#set(value) ⇒ void
Buffers a write of the value.
Instance Method Details
#clear ⇒ void
This method returns an undefined value.
Buffers a clear of the value.
572 573 574 |
# File 'lib/prosody/native_stubs.rb', line 572 def clear raise NotImplementedError, "This method is implemented natively in Rust" end |
#commit ⇒ nil
Durably commits the buffered operations mid-handler.
579 580 581 |
# File 'lib/prosody/native_stubs.rb', line 579 def commit raise NotImplementedError, "This method is implemented natively in Rust" end |
#get ⇒ Object?
Reads the current value.
555 556 557 |
# File 'lib/prosody/native_stubs.rb', line 555 def get raise NotImplementedError, "This method is implemented natively in Rust" end |
#initialize ⇒ Object
548 549 550 |
# File 'lib/prosody/native_stubs.rb', line 548 def initialize raise NotImplementedError, "This class is implemented natively in Rust" end |
#rollback ⇒ nil
Discards the buffered uncommitted operations.
586 587 588 |
# File 'lib/prosody/native_stubs.rb', line 586 def rollback raise NotImplementedError, "This method is implemented natively in Rust" end |
#set(value) ⇒ void
This method returns an undefined value.
Buffers a write of the value.
565 566 567 |
# File 'lib/prosody/native_stubs.rb', line 565 def set(value) raise NotImplementedError, "This method is implemented natively in Rust" end |