[][src]Trait snec::Get

pub trait Get<E: Entry> {
    type Receiver: Receiver<E>;
    fn get_ref(&self) -> &E::Data;
fn get_handle(&mut self) -> Handle<'_, E, Self::Receiver>; }

Trait for getting handles to fields in config tables.

This trait is implemented by config tables for every E which is a field inside the table.

Associated Types

type Receiver: Receiver<E>

The receiver which will be notified when modifications are performed via the handle.

Loading content...

Required methods

fn get_ref(&self) -> &E::Data

Returns an unguarded immutable reference to the field.

fn get_handle(&mut self) -> Handle<'_, E, Self::Receiver>

Returns a Handle to the field.

Loading content...

Implementors

Loading content...