pub struct OperationState {
pub sid: u32,
pub ioid: u32,
pub command: u8,
pub pv_name: Option<String>,
pub field_desc: Option<StructureDesc>,
pub initialized: bool,
pub last_seen: Instant,
pub update_times: VecDeque<Instant>,
pub recent_messages: VecDeque<String>,
}Expand description
State for an active operation (GET/PUT/MONITOR etc.)
Fields§
§sid: u32Server channel ID this operation is on
ioid: u32Operation ID
command: u8Command type (10=GET, 11=PUT, 13=MONITOR, etc.)
pv_name: Option<String>PV name (resolved from channel state)
field_desc: Option<StructureDesc>Field description from INIT response (parsed introspection)
initialized: boolWhether INIT phase completed
last_seen: InstantLast activity
update_times: VecDeque<Instant>§recent_messages: VecDeque<String>Implementations§
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
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 moreAuto Trait Implementations§
impl Freeze for OperationState
impl RefUnwindSafe for OperationState
impl Send for OperationState
impl Sync for OperationState
impl Unpin for OperationState
impl UnsafeUnpin for OperationState
impl UnwindSafe for OperationState
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