pub trait OptionHandle<T>{
// Required methods
async fn is_some(&self) -> bool;
async fn is_none(&self) -> bool;
}Expand description
An implementation of the ActorOption extension trait for the standard Option.
This extension trait is made available on the Handle through the actify macro
as OptionHandle.
Within the actor these methods are invoked, which in turn just extend the functionality provided by the std library.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<T, __V> OptionHandle<T> for Handle<Option<T>, __V>
An implementation of the ActorOption extension trait for the standard Option.
This extension trait is made available on the Handle through the actify macro
as OptionHandle.
Within the actor these methods are invoked, which in turn just extend the functionality provided by the std library.