pub struct PipelineConfig {
pub receive_timeout_ms: u64,
pub frame_group_timeout_ms: u64,
pub velocity_buffer_timeout_us: u64,
}Expand description
Pipeline 配置
控制 IO 线程的行为,包括接收超时和帧组超时设置。
§Example
use piper_driver::PipelineConfig;
// 使用默认配置(2ms 接收超时,10ms 帧组超时)
let config = PipelineConfig::default();
// 自定义配置
let config = PipelineConfig {
receive_timeout_ms: 5,
frame_group_timeout_ms: 20,
velocity_buffer_timeout_us: 20_000,
};Fields§
§receive_timeout_ms: u64CAN 接收超时(毫秒)
frame_group_timeout_ms: u64帧组超时(毫秒) 如果收到部分帧后,超过此时间未收到完整帧组,则丢弃缓存
velocity_buffer_timeout_us: u64速度帧缓冲区超时(微秒) 如果收到部分速度帧后,超过此时间未收到完整帧组,则强制提交
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PipelineConfig
impl Debug for PipelineConfig
Source§impl Default for PipelineConfig
impl Default for PipelineConfig
Source§fn default() -> PipelineConfig
fn default() -> PipelineConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for PipelineConfig
impl PartialEq for PipelineConfig
impl Eq for PipelineConfig
impl StructuralPartialEq for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more