pub struct StationEventTransportBridge { /* private fields */ }Expand description
Bridge between typed station events and bounded station packet transport.
Implementations§
Source§impl StationEventTransportBridge
impl StationEventTransportBridge
Sourcepub const fn stats(&self) -> StationEventTransportStats
pub const fn stats(&self) -> StationEventTransportStats
Returns bridge statistics.
Sourcepub fn send_event<T>(
&mut self,
transport: &mut T,
event: &StationEvent,
) -> Result<(), StationEventTransportError<T::Error>>where
T: StationTransportSink,
pub fn send_event<T>(
&mut self,
transport: &mut T,
event: &StationEvent,
) -> Result<(), StationEventTransportError<T::Error>>where
T: StationTransportSink,
Encodes and sends one station event through the station transport.
Sourcepub fn pump_target<T>(
&mut self,
transport: &mut T,
router: &mut EventRouter,
target_station: StationId,
max_packets: usize,
) -> Result<StationEventPumpReport, StationEventTransportError<T::Error>>where
T: StationTransportReceiver,
pub fn pump_target<T>(
&mut self,
transport: &mut T,
router: &mut EventRouter,
target_station: StationId,
max_packets: usize,
) -> Result<StationEventPumpReport, StationEventTransportError<T::Error>>where
T: StationTransportReceiver,
Receives up to max_packets for target_station, decodes station
events, and routes them into router.
Trait Implementations§
Source§impl Clone for StationEventTransportBridge
impl Clone for StationEventTransportBridge
Source§fn clone(&self) -> StationEventTransportBridge
fn clone(&self) -> StationEventTransportBridge
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 StationEventTransportBridge
impl Debug for StationEventTransportBridge
Source§impl Default for StationEventTransportBridge
impl Default for StationEventTransportBridge
Source§fn default() -> StationEventTransportBridge
fn default() -> StationEventTransportBridge
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StationEventTransportBridge
impl RefUnwindSafe for StationEventTransportBridge
impl Send for StationEventTransportBridge
impl Sync for StationEventTransportBridge
impl Unpin for StationEventTransportBridge
impl UnsafeUnpin for StationEventTransportBridge
impl UnwindSafe for StationEventTransportBridge
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