pub struct UpsConfig {
pub address: String,
}Expand description
Where to read UPSes from.
Fields§
§address: StringNetwork UPS Tools’ upsd (host:port, the port 3493 if left out);
empty to disable. Nothing is shown when nothing listens there.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpsConfig
impl<'de> Deserialize<'de> for UpsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for UpsConfig
Auto Trait Implementations§
impl Forget for UpsConfig
impl Freeze for UpsConfig
impl RefUnwindSafe for UpsConfig
impl Send for UpsConfig
impl Sync for UpsConfig
impl Unpin for UpsConfig
impl UnsafeUnpin for UpsConfig
impl UnwindSafe for UpsConfig
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