pub trait InPort<T: AnyPortValue>: PortCommons {
// Required methods
fn get(&self) -> impl Future<Output = Result<Option<T>, Error>> + Send;
fn try_get(&self) -> Result<Option<T>, Error>;
}Expand description
Required Methods§
Sourcefn get(&self) -> impl Future<Output = Result<Option<T>, Error>> + Send
fn get(&self) -> impl Future<Output = Result<Option<T>, Error>> + Send
Returns a clone of the value, waiting while the value is write locked.
§Errors
Error::DataType, if the port has another data type thanT.
Sourcefn try_get(&self) -> Result<Option<T>, Error>
fn try_get(&self) -> Result<Option<T>, Error>
Returns a clone of the value without waiting for a write locked value.
§Errors
Error::IsLocked, if the value is write locked.Error::DataType, if the port has another data type thanT.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".