pub trait Capability:
Copy
+ Debug
+ 'static {
// Required methods
fn from_queue_type(queue_type: QueueType) -> Option<Self>;
fn into_queue_type(self) -> QueueType;
}
Expand description
Abstract capability specifier.
Required Methods§
Sourcefn from_queue_type(queue_type: QueueType) -> Option<Self>
fn from_queue_type(queue_type: QueueType) -> Option<Self>
Try to create capability instance from queue_type. Instance will be created if all required queue_type set.
Sourcefn into_queue_type(self) -> QueueType
fn into_queue_type(self) -> QueueType
Convert into QueueType
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.