Struct Stream Callback State
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Failure and callback-thread state shared by a stream’s callbacks and its FfiStream.
Implementations
impl StreamCallbackState
impl StreamCallbackState
record_failure
pub fn record_failure(&self, message: String)
Record a finalizer failure for nemo_relay_stream_close to report.
take_failure
pub fn take_failure(&self) -> Option<String>
Take the recorded finalizer failure.
on_callback_thread
pub fn on_callback_thread(&self) -> bool
Whether the calling thread is inside this stream’s collector or finalizer.
Trait Implementations
impl Default for StreamCallbackState
impl Default for StreamCallbackState
default
fn default() -> StreamCallbackState