pub struct Protection {
pub scheme_szl: u16,
pub scheme_module: u16,
pub scheme_bus: u16,
pub level: u16,
pub password_set: bool,
}Expand description
Result of S7Client::get_protection.
Fields§
§scheme_szl: u16Protection scheme SZL number.
scheme_module: u16Protection scheme module number.
scheme_bus: u16Protection scheme bus number.
level: u16Protection level: 0=none, 1=write, 2=read/write, 3=complete.
password_set: boolWhether a password is currently set on the PLC.
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
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 moreAuto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnsafeUnpin for Protection
impl UnwindSafe for Protection
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