Skip to main content

ManifoldLaneSet

Struct ManifoldLaneSet 

Source
pub struct ManifoldLaneSet<M: RawMutex + 'static, const LANE_COUNT: usize, const NOTIFY: usize> { /* private fields */ }

Implementations§

Source§

impl<M: RawMutex + Sync + 'static, const LANE_COUNT: usize, const NOTIFY: usize> ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

Source

pub fn new() -> Self

Source

pub fn claim_interface<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, descriptor: InterfaceDescriptor, ) -> Result<InterfaceLane<M, FRAME>, LaneClaimError>

Source

pub fn claim_interface_with_outbound_buffer<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, descriptor: InterfaceDescriptor, outbound_buffer: &'static mut [FrameSlot<FRAME>], ) -> Result<InterfaceLane<M, FRAME>, LaneClaimError>

Claims an interface whose outbound frame ring lives in caller-owned static storage.

Source

pub fn claim_interface_with_ifac<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, descriptor: InterfaceDescriptor, context: IfacContext, ) -> Result<InterfaceLane<M, FRAME>, LaneClaimError>

Source

pub fn claim_supervisor<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, supervisor: InterfaceId, outbound_wake: &'static Signal<M, ()>, ) -> Result<SupervisorLane<M, FRAME>, LaneClaimError>

Source

pub fn claim_supervisor_with_outbound_buffer<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, supervisor: InterfaceId, outbound_wake: &'static Signal<M, ()>, outbound_buffer: &'static mut [FrameSlot<FRAME>], ) -> Result<SupervisorLane<M, FRAME>, LaneClaimError>

Claims a supervisor whose outbound frame ring lives in caller-owned static storage.

This keeps a large burst queue out of scarce internal RAM on targets with a separately initialized external-memory allocator. Inbound storage and notification accounting remain those declared by INBOUND_DEPTH.

Source

pub fn claim_supervisor_with_ifac<const FRAME: usize, const INBOUND_DEPTH: usize, const OUTBOUND_DEPTH: usize>( &mut self, storage: &'static StaticManifoldLane<M, FRAME, INBOUND_DEPTH, OUTBOUND_DEPTH>, supervisor: InterfaceId, context: IfacContext, outbound_wake: &'static Signal<M, ()>, ) -> Result<SupervisorLane<M, FRAME>, LaneClaimError>

Source

pub fn into_manifold_wiring<const COMMANDS: usize, const LIFECYCLE: usize, const COMPLETIONS: usize>( self, notify: Receiver<'static, M, InterfaceId, NOTIFY>, commands: Receiver<'static, M, IssuedCommand, COMMANDS>, lifecycle: Receiver<'static, M, InterfaceLifecycle, LIFECYCLE>, handle: PrnsNodeHandle<'static, M, COMMANDS, COMPLETIONS>, ) -> ManifoldWiring<M, LANE_COUNT, NOTIFY, COMMANDS, LIFECYCLE, COMPLETIONS>

Trait Implementations§

Source§

impl<M: RawMutex + Sync + 'static, const LANE_COUNT: usize, const NOTIFY: usize> Default for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> !RefUnwindSafe for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> !Sync for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> !UnwindSafe for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> Freeze for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> Send for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>
where M: Send,

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> Unpin for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>
where M: Unpin,

§

impl<M, const LANE_COUNT: usize, const NOTIFY: usize> UnsafeUnpin for ManifoldLaneSet<M, LANE_COUNT, NOTIFY>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.