pub struct Fleet<M: RawMutex + 'static, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> { /* private fields */ }Implementations§
Source§impl<M: RawMutex + 'static, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Fleet<M, FRAME, NOTIFY, LIFECYCLE>
impl<M: RawMutex + 'static, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Fleet<M, FRAME, NOTIFY, LIFECYCLE>
pub async fn register_member(&self, descriptor: InterfaceDescriptor)
pub async fn deregister_member(&self, id: InterfaceId)
pub fn try_deliver_inbound( &mut self, child: InterfaceId, bytes: &[u8], ) -> Result<(), InboundDeliveryError>
Sourcepub async fn deliver_inbound(
&mut self,
child: InterfaceId,
bytes: &[u8],
) -> Result<(), InboundDeliveryError>
pub async fn deliver_inbound( &mut self, child: InterfaceId, bytes: &[u8], ) -> Result<(), InboundDeliveryError>
Delivers one member frame with end-to-end backpressure.
Supervisors backed by a reliable transport should use this path: when the manifold is still consuming the previous frame, the transport can stop admitting further frames instead of silently turning transient scheduler latency into packet loss.
pub async fn next_outbound(&mut self) -> OutboundFrame<FRAME>
Sourcepub async fn outbound_ready(&self)
pub async fn outbound_ready(&self)
Waits for a shared-lane commit; drain with try_next_outbound after waking.
pub fn try_next_outbound(&mut self) -> Option<OutboundFrame<FRAME>>
Auto Trait Implementations§
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> !RefUnwindSafe for Fleet<M, FRAME, NOTIFY, LIFECYCLE>
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> !UnwindSafe for Fleet<M, FRAME, NOTIFY, LIFECYCLE>
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Freeze for Fleet<M, FRAME, NOTIFY, LIFECYCLE>
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Send for Fleet<M, FRAME, NOTIFY, LIFECYCLE>where
M: Sync,
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Sync for Fleet<M, FRAME, NOTIFY, LIFECYCLE>where
M: Sync,
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> Unpin for Fleet<M, FRAME, NOTIFY, LIFECYCLE>
impl<M, const FRAME: usize, const NOTIFY: usize, const LIFECYCLE: usize> UnsafeUnpin for Fleet<M, FRAME, NOTIFY, LIFECYCLE>
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