pub struct AllSwitchData {
pub switch1: Option<SwitchData>,
pub switch2: Option<SwitchData>,
pub switch3: Option<SwitchData>,
}Fields§
§switch1: Option<SwitchData>§switch2: Option<SwitchData>§switch3: Option<SwitchData>Implementations§
Source§impl AllSwitchData
impl AllSwitchData
pub fn new() -> Self
pub fn get_all_switch_data() -> Result<AllSwitchData, SwitchError>
pub fn get_switch_data(switch: u8) -> Result<SwitchData, SwitchError>
pub fn print_all_switch()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllSwitchData
impl RefUnwindSafe for AllSwitchData
impl Send for AllSwitchData
impl Sync for AllSwitchData
impl Unpin for AllSwitchData
impl UnwindSafe for AllSwitchData
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> 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