pub struct ElementDescriptor {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub source: ElementSource,
pub shape: ElementShape,
pub authority: ElementAuthority,
pub write_policy: ElementWritePolicy,
pub scheduling_role: ElementSchedulingRole,
pub realtime_model: ElementRealtimeModel,
pub composition_role: ElementCompositionRole,
pub realtime: bool,
}Expand description
Built-in descriptor shape. Plugin loaders can convert this to an owned descriptor later without changing element crate semantics.
Fields§
§name: &'static str§aliases: &'static [&'static str]§source: ElementSource§shape: ElementShape§write_policy: ElementWritePolicy§scheduling_role: ElementSchedulingRole§realtime_model: ElementRealtimeModel§composition_role: ElementCompositionRole§realtime: boolTrue when realtime processing may update this element outside turn closeout. Commits remain owned by the turn lifecycle.
Implementations§
Source§impl ElementDescriptor
impl ElementDescriptor
pub fn matches_name(self, name: &str) -> bool
pub fn canonical_name(self, name: &str) -> Option<&'static str>
pub fn as_registration(self) -> ElementRegistration
Trait Implementations§
Source§impl Clone for ElementDescriptor
impl Clone for ElementDescriptor
Source§fn clone(&self) -> ElementDescriptor
fn clone(&self) -> ElementDescriptor
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 moreimpl Copy for ElementDescriptor
Source§impl Debug for ElementDescriptor
impl Debug for ElementDescriptor
impl Eq for ElementDescriptor
Source§impl PartialEq for ElementDescriptor
impl PartialEq for ElementDescriptor
Source§fn eq(&self, other: &ElementDescriptor) -> bool
fn eq(&self, other: &ElementDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElementDescriptor
Auto Trait Implementations§
impl Freeze for ElementDescriptor
impl RefUnwindSafe for ElementDescriptor
impl Send for ElementDescriptor
impl Sync for ElementDescriptor
impl Unpin for ElementDescriptor
impl UnsafeUnpin for ElementDescriptor
impl UnwindSafe for ElementDescriptor
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