Struct ecu_diagnostics::kwp2000::Kwp2000ServerOptions
source · [−]#[repr(C)]pub struct Kwp2000ServerOptions {
pub send_id: u32,
pub recv_id: u32,
pub read_timeout_ms: u32,
pub write_timeout_ms: u32,
pub global_tp_id: u32,
pub tester_present_interval_ms: u32,
pub tester_present_require_response: bool,
pub global_session_control: bool,
}
Expand description
KWP2000 server options
Fields
send_id: u32
ECU Send ID
recv_id: u32
ECU Receive ID
read_timeout_ms: u32
Read timeout in ms
write_timeout_ms: u32
Write timeout in ms
global_tp_id: u32
Optional global address to send tester-present messages to Set to 0 if not in use
tester_present_interval_ms: u32
Tester present minimum send interval in ms
tester_present_require_response: bool
Configures if the diagnostic server will poll for a response from tester present.
global_session_control: bool
Session control uses global_tp_id if specified
If global_tp_id
is set to 0, then this value is ignored.
IMPORTANT: This can set your ENTIRE vehicle network into diagnostic session mode, so be very careful doing this!
Trait Implementations
sourceimpl BaseServerSettings for Kwp2000ServerOptions
impl BaseServerSettings for Kwp2000ServerOptions
sourcefn get_write_timeout_ms(&self) -> u32
fn get_write_timeout_ms(&self) -> u32
Gets the write timeout for sending messages to the servers channel
sourcefn get_read_timeout_ms(&self) -> u32
fn get_read_timeout_ms(&self) -> u32
Gets the read timeout for reading response messages from the servers channel
sourceimpl Clone for Kwp2000ServerOptions
impl Clone for Kwp2000ServerOptions
sourcefn clone(&self) -> Kwp2000ServerOptions
fn clone(&self) -> Kwp2000ServerOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Kwp2000ServerOptions
impl Debug for Kwp2000ServerOptions
impl Copy for Kwp2000ServerOptions
Auto Trait Implementations
impl RefUnwindSafe for Kwp2000ServerOptions
impl Send for Kwp2000ServerOptions
impl Sync for Kwp2000ServerOptions
impl Unpin for Kwp2000ServerOptions
impl UnwindSafe for Kwp2000ServerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more