pub struct PStat { /* private fields */ }
Expand description
Holding programming error flags
Implementations§
source§impl PStat
impl PStat
sourcepub fn new(
user_aborted: bool,
no_read_ack: bool,
no_write_ack: bool,
programming_track_empty: bool,
) -> Self
pub fn new( user_aborted: bool, no_read_ack: bool, no_write_ack: bool, programming_track_empty: bool, ) -> Self
Creates new programming error information
§Parameters
user_aborted
: If an user canceled the programming operationno_read_ack
: No read acknowledgment receivedno_write_ack
: No write acknowledgment receivedprogramming_track_empty
: No train is on the programming track
sourcepub fn user_aborted(&self) -> bool
pub fn user_aborted(&self) -> bool
§Returns
If the operation was aborted by a user
sourcepub fn no_read_ack(&self) -> bool
pub fn no_read_ack(&self) -> bool
§Returns
If the operation was canceled by a missing read acknowledgment
sourcepub fn no_write_ack(&self) -> bool
pub fn no_write_ack(&self) -> bool
§Returns
If the operation was canceled by a missing write acknowledgment
sourcepub fn programming_track_empty(&self) -> bool
pub fn programming_track_empty(&self) -> bool
§Returns
If no train was found to programm
Trait Implementations§
impl Copy for PStat
impl Eq for PStat
impl StructuralPartialEq for PStat
Auto Trait Implementations§
impl Freeze for PStat
impl RefUnwindSafe for PStat
impl Send for PStat
impl Sync for PStat
impl Unpin for PStat
impl UnwindSafe for PStat
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)