pub struct LaneDescriptor {
pub id: LaneId,
pub kind: LaneKind,
pub target: LaneTarget,
pub order: u32,
}Expand description
Describes a single lane: its identity, content kind, target, and order.
Fields§
§id: LaneIdStable identifier of the lane.
kind: LaneKindCategory of content the lane carries.
target: LaneTargetDestination the lane routes events to.
order: u32Sort order of the lane relative to its peers.
Implementations§
Source§impl LaneDescriptor
impl LaneDescriptor
Sourcepub fn new(
id: LaneId,
kind: LaneKind,
target: LaneTarget,
order: u32,
) -> Result<Self, MusicError>
pub fn new( id: LaneId, kind: LaneKind, target: LaneTarget, order: u32, ) -> Result<Self, MusicError>
Builds a descriptor, validating that target accepts kind.
Returns MusicError::InvalidLaneTarget when the target cannot carry the
given kind.
Trait Implementations§
Source§impl Clone for LaneDescriptor
impl Clone for LaneDescriptor
Source§fn clone(&self) -> LaneDescriptor
fn clone(&self) -> LaneDescriptor
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 LaneDescriptor
impl Debug for LaneDescriptor
impl Eq for LaneDescriptor
Source§impl PartialEq for LaneDescriptor
impl PartialEq for LaneDescriptor
impl StructuralPartialEq for LaneDescriptor
Auto Trait Implementations§
impl Freeze for LaneDescriptor
impl RefUnwindSafe for LaneDescriptor
impl Send for LaneDescriptor
impl Sync for LaneDescriptor
impl Unpin for LaneDescriptor
impl UnsafeUnpin for LaneDescriptor
impl UnwindSafe for LaneDescriptor
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