Skip to main content

GetPort

Type Alias GetPort 

Source
pub type GetPort<T> = Port<dyn GetIf<T>>;
Expand description

A port that takes items out of something it does not own.

Aliased Type§

pub struct GetPort<T> { /* private fields */ }

Implementations§

Source§

impl<T: 'static> GetPort<T>

Source

pub async fn get(&self) -> T

Block until there is an item, then take it out.

Source

pub fn try_get(&self) -> Option<T>

Source

pub fn can_get(&self) -> bool