pub struct HostOpenPlan { /* private fields */ }Expand description
Resolved plan describing how a device would be opened.
Names the backend, device, the effect kinds the open performs, and the capabilities the open requires.
Implementations§
Source§impl HostOpenPlan
impl HostOpenPlan
Sourcepub fn new(
backend: Symbol,
device: Symbol,
effect_kinds: Vec<Symbol>,
requires: Vec<CapabilityName>,
) -> Self
pub fn new( backend: Symbol, device: Symbol, effect_kinds: Vec<Symbol>, requires: Vec<CapabilityName>, ) -> Self
Builds an open plan from resolved backend, device, effects, and required capabilities.
Sourcepub fn effect_kinds(&self) -> &[Symbol]
pub fn effect_kinds(&self) -> &[Symbol]
Returns the effect kinds the open performs.
Sourcepub fn requires(&self) -> &[CapabilityName]
pub fn requires(&self) -> &[CapabilityName]
Returns the capabilities the open requires.
Trait Implementations§
Source§impl Clone for HostOpenPlan
impl Clone for HostOpenPlan
Source§fn clone(&self) -> HostOpenPlan
fn clone(&self) -> HostOpenPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostOpenPlan
impl Debug for HostOpenPlan
impl Eq for HostOpenPlan
Source§impl PartialEq for HostOpenPlan
impl PartialEq for HostOpenPlan
impl StructuralPartialEq for HostOpenPlan
Auto Trait Implementations§
impl Freeze for HostOpenPlan
impl RefUnwindSafe for HostOpenPlan
impl Send for HostOpenPlan
impl Sync for HostOpenPlan
impl Unpin for HostOpenPlan
impl UnsafeUnpin for HostOpenPlan
impl UnwindSafe for HostOpenPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more