Skip to main content

UpdateHandlerImpl

Trait UpdateHandlerImpl 

Source
pub trait UpdateHandlerImpl: UpdateCallbackDataAccess {
    // Provided methods
    fn try_update(
        &mut self,
        operation: UpdateOperation,
        source_id: Option<TransceiverId>,
        cache: &RefCell<SharedReferencesCache>,
    ) -> UpdateResult { ... }
    fn try_set_entry(
        &mut self,
        _data: SetEntryUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<Option<ValueContainer>, UpdateError> { ... }
    fn try_delete_entry(
        &mut self,
        _data: DeleteEntryUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<ValueContainer, UpdateError> { ... }
    fn try_append_entry(
        &mut self,
        _data: AppendEntryUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<(), UpdateError> { ... }
    fn try_clear(
        &mut self,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<ValueContainer, UpdateError> { ... }
    fn try_list_splice(
        &mut self,
        _data: ListSpliceUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<Vec<ValueContainer>, UpdateError> { ... }
    fn try_increment(
        &mut self,
        _data: IncrementUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<(), UpdateError> { ... }
    fn try_decrement(
        &mut self,
        _data: DecrementUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<(), UpdateError> { ... }
    fn try_replace(
        &mut self,
        _data: ReplaceUpdateData,
        _cache: &RefCell<SharedReferencesCache>,
    ) -> Result<(), UpdateError> { ... }
}

Provided Methods§

Source

fn try_update( &mut self, operation: UpdateOperation, source_id: Option<TransceiverId>, cache: &RefCell<SharedReferencesCache>, ) -> UpdateResult

Handles an update operation on the implementing type and returns an UpdateResult. The replacement operation must be handled at a higher level, as it is not specific to the implementing type - there are special cases, such as Option / Box. If the optional source_id is provided, it should be used to notify observers of the internal update.

Source

fn try_set_entry( &mut self, _data: SetEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<Option<ValueContainer>, UpdateError>

Source

fn try_delete_entry( &mut self, _data: DeleteEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<ValueContainer, UpdateError>

Source

fn try_append_entry( &mut self, _data: AppendEntryUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>

Source

fn try_clear( &mut self, _cache: &RefCell<SharedReferencesCache>, ) -> Result<ValueContainer, UpdateError>

Source

fn try_list_splice( &mut self, _data: ListSpliceUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<Vec<ValueContainer>, UpdateError>

Source

fn try_increment( &mut self, _data: IncrementUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>

Source

fn try_decrement( &mut self, _data: DecrementUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>

Source

fn try_replace( &mut self, _data: ReplaceUpdateData, _cache: &RefCell<SharedReferencesCache>, ) -> Result<(), UpdateError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UpdateHandlerImpl for Duration

Source§

impl UpdateHandlerImpl for bool

Source§

impl UpdateHandlerImpl for f32

Source§

impl UpdateHandlerImpl for f64

Source§

impl UpdateHandlerImpl for i8

Source§

impl UpdateHandlerImpl for i16

Source§

impl UpdateHandlerImpl for i32

Source§

impl UpdateHandlerImpl for i64

Source§

impl UpdateHandlerImpl for i128

Source§

impl UpdateHandlerImpl for isize

Source§

impl UpdateHandlerImpl for u8

Source§

impl UpdateHandlerImpl for u16

Source§

impl UpdateHandlerImpl for u32

Source§

impl UpdateHandlerImpl for u64

Source§

impl UpdateHandlerImpl for u128

Source§

impl UpdateHandlerImpl for usize

Source§

impl<K, V> UpdateHandlerImpl for IndexMap<K, V, RandomState>
where K: Eq + Hash + DatexNativeBase + 'static, V: DatexNativeBase + 'static,

Source§

impl<T: DatexNative + ConvertValue + 'static> UpdateHandlerImpl for Option<T>

Implementors§

Source§

impl UpdateHandlerImpl for AcceptAddress

Source§

impl UpdateHandlerImpl for BlockDirection

Source§

impl UpdateHandlerImpl for Boolean

Source§

impl UpdateHandlerImpl for Callable

Source§

impl UpdateHandlerImpl for ComHubMetadata

Source§

impl UpdateHandlerImpl for ComHubMetadataInterface

Source§

impl UpdateHandlerImpl for ComHubMetadataInterfaceSocket

Source§

impl UpdateHandlerImpl for ComInterfaceProperties

Source§

impl UpdateHandlerImpl for CoreValueWithClassification

Source§

impl UpdateHandlerImpl for Decimal

Source§

impl UpdateHandlerImpl for DisassemblerOptions

Source§

impl UpdateHandlerImpl for DynamicEndpointProperties

Source§

impl UpdateHandlerImpl for Endpoint

Source§

impl UpdateHandlerImpl for HTTPClientInterfaceSetupData

Source§

impl UpdateHandlerImpl for HTTPServerInterfaceSetupData

Source§

impl UpdateHandlerImpl for HeapStats

Source§

impl UpdateHandlerImpl for Instant

Source§

impl UpdateHandlerImpl for Integer

Source§

impl UpdateHandlerImpl for InterfaceDirection

Source§

impl UpdateHandlerImpl for InterfacePriority

Source§

impl UpdateHandlerImpl for List

Source§

impl UpdateHandlerImpl for LogLevel

Source§

impl UpdateHandlerImpl for LogMessage

Source§

impl UpdateHandlerImpl for Map

Source§

impl UpdateHandlerImpl for NetworkTraceHop

Source§

impl UpdateHandlerImpl for NetworkTraceHopDirection

Source§

impl UpdateHandlerImpl for NetworkTraceHopSocket

Source§

impl UpdateHandlerImpl for NetworkTraceResult

Source§

impl UpdateHandlerImpl for RTCIceCandidateInitDX

Source§

impl UpdateHandlerImpl for RTCIceServerDX

Source§

impl UpdateHandlerImpl for RTCSdpTypeDX

Source§

impl UpdateHandlerImpl for RTCSessionDescriptionDX

Source§

impl UpdateHandlerImpl for Range

Source§

impl UpdateHandlerImpl for ReconnectionConfig

Source§

impl UpdateHandlerImpl for RuntimeConfig

Source§

impl UpdateHandlerImpl for RuntimeConfigInterface

Source§

impl UpdateHandlerImpl for RuntimeInfo

Source§

impl UpdateHandlerImpl for RuntimeStats

Source§

impl UpdateHandlerImpl for SerialClientInterfaceSetupData

Source§

impl UpdateHandlerImpl for String

Source§

impl UpdateHandlerImpl for TCPClientInterfaceSetupData

Source§

impl UpdateHandlerImpl for TCPServerInterfaceSetupData

Source§

impl UpdateHandlerImpl for TLSMode

Source§

impl UpdateHandlerImpl for Text

Source§

impl UpdateHandlerImpl for Type

Source§

impl UpdateHandlerImpl for TypedDecimal

Source§

impl UpdateHandlerImpl for TypedInteger

Source§

impl UpdateHandlerImpl for Value

Source§

impl UpdateHandlerImpl for WebRTCInterfaceSetupData

Source§

impl UpdateHandlerImpl for WebRTCRoleDX

Source§

impl UpdateHandlerImpl for WebRTCSignalDX

Source§

impl UpdateHandlerImpl for WebSocketClientInterfaceSetupData

Source§

impl UpdateHandlerImpl for WebSocketServerInterfaceSetupData

Source§

impl<T: DatexNative> UpdateHandlerImpl for Box<T>

Source§

impl<T: DatexNativeBase + 'static> UpdateHandlerImpl for Receiver<T>

Source§

impl<T: DatexNativeBase + 'static> UpdateHandlerImpl for Sender<T>

Source§

impl<T: DatexNativeBase + 'static> UpdateHandlerImpl for Vec<T>