Skip to main content

Source

Trait Source 

Source
pub trait Source {
    type Item;

    // Required method
    fn get(&self) -> Self::Item;
}
Expand description

A signal that can be read through the supervisor’s get verb.

Required Associated Types§

Source

type Item

The value type read from the signal.

Required Methods§

Source

fn get(&self) -> Self::Item

Return a snapshot of the signal’s current value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Source for Atomic<bool>

Available on target_has_atomic=8 only.
Source§

type Item = bool

Source§

fn get(&self) -> bool

Source§

impl Source for Atomic<i8>

Available on target_has_atomic=8 only.
Source§

type Item = i8

Source§

fn get(&self) -> i8

Source§

impl Source for Atomic<i16>

Available on target_has_atomic=16 only.
Source§

type Item = i16

Source§

fn get(&self) -> i16

Source§

impl Source for Atomic<i32>

Available on target_has_atomic=32 only.
Source§

type Item = i32

Source§

fn get(&self) -> i32

Source§

impl Source for Atomic<i64>

Available on target_has_atomic=64 only.
Source§

type Item = i64

Source§

fn get(&self) -> i64

Source§

impl Source for Atomic<isize>

Available on target_has_atomic=ptr only.
Source§

type Item = isize

Source§

fn get(&self) -> isize

Source§

impl Source for Atomic<u8>

Available on target_has_atomic=8 only.
Source§

type Item = u8

Source§

fn get(&self) -> u8

Source§

impl Source for Atomic<u16>

Available on target_has_atomic=16 only.
Source§

type Item = u16

Source§

fn get(&self) -> u16

Source§

impl Source for Atomic<u32>

Available on target_has_atomic=32 only.
Source§

type Item = u32

Source§

fn get(&self) -> u32

Source§

impl Source for Atomic<u64>

Available on target_has_atomic=64 only.
Source§

type Item = u64

Source§

fn get(&self) -> u64

Source§

impl Source for Atomic<usize>

Available on target_has_atomic=ptr only.
Source§

type Item = usize

Source§

fn get(&self) -> usize

Source§

impl Source for AtomicBool

Source§

type Item = bool

Source§

fn get(&self) -> bool

Source§

impl Source for AtomicI8

Source§

type Item = i8

Source§

fn get(&self) -> i8

Source§

impl Source for AtomicI16

Source§

type Item = i16

Source§

fn get(&self) -> i16

Source§

impl Source for AtomicI32

Source§

type Item = i32

Source§

fn get(&self) -> i32

Source§

impl Source for AtomicI64

Source§

type Item = i64

Source§

fn get(&self) -> i64

Source§

impl Source for AtomicIsize

Source§

type Item = isize

Source§

fn get(&self) -> isize

Source§

impl Source for AtomicU8

Source§

type Item = u8

Source§

fn get(&self) -> u8

Source§

impl Source for AtomicU16

Source§

type Item = u16

Source§

fn get(&self) -> u16

Source§

impl Source for AtomicU32

Source§

type Item = u32

Source§

fn get(&self) -> u32

Source§

impl Source for AtomicU64

Source§

type Item = u64

Source§

fn get(&self) -> u64

Source§

impl Source for AtomicUsize

Source§

type Item = usize

Source§

fn get(&self) -> usize

Implementors§

Source§

impl<T: Source> Source for Stamped<T>

Available on crate feature dataflow only.
Source§

type Item = <T as Source>::Item

Source§

impl<T> Source for Counted<T>
where T: Source,

Source§

type Item = <T as Source>::Item