pub struct GatewayCommandPipeline { /* private fields */ }Expand description
Business-agnostic gateway command frame pipeline.
Implementations§
Source§impl GatewayCommandPipeline
impl GatewayCommandPipeline
Sourcepub fn new(config: GatewayCommandPipelineConfig) -> Self
pub fn new(config: GatewayCommandPipelineConfig) -> Self
Creates a pipeline.
Sourcepub const fn config(&self) -> GatewayCommandPipelineConfig
pub const fn config(&self) -> GatewayCommandPipelineConfig
Returns configuration.
Sourcepub const fn stats(&self) -> GatewayCommandPipelineStats
pub const fn stats(&self) -> GatewayCommandPipelineStats
Returns statistics.
Sourcepub fn process(
&mut self,
gateway: &mut GatewaySessionTable,
station_queues: &mut BTreeMap<StationId, CommandQueues>,
input: &[u8],
now: Tick,
ingress: CommandIngress,
) -> GatewayCommandPipelineReport
pub fn process( &mut self, gateway: &mut GatewaySessionTable, station_queues: &mut BTreeMap<StationId, CommandQueues>, input: &[u8], now: Tick, ingress: CommandIngress, ) -> GatewayCommandPipelineReport
Processes one decoded-transport command packet and optionally produces an encoded command ACK.
Sourcepub fn dispatch(
&mut self,
gateway: &mut GatewaySessionTable,
deployment: &DeploymentRouteTable,
input: &[u8],
now: Tick,
) -> GatewayCommandPipelineReport
pub fn dispatch( &mut self, gateway: &mut GatewaySessionTable, deployment: &DeploymentRouteTable, input: &[u8], now: Tick, ) -> GatewayCommandPipelineReport
Decodes and admits one command packet, then resolves a deployment route for external node dispatch without touching local station queues.
Trait Implementations§
Source§impl Clone for GatewayCommandPipeline
impl Clone for GatewayCommandPipeline
Source§fn clone(&self) -> GatewayCommandPipeline
fn clone(&self) -> GatewayCommandPipeline
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 GatewayCommandPipeline
impl Debug for GatewayCommandPipeline
Auto Trait Implementations§
impl Freeze for GatewayCommandPipeline
impl RefUnwindSafe for GatewayCommandPipeline
impl Send for GatewayCommandPipeline
impl Sync for GatewayCommandPipeline
impl Unpin for GatewayCommandPipeline
impl UnsafeUnpin for GatewayCommandPipeline
impl UnwindSafe for GatewayCommandPipeline
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