pub struct CurrentTimeoutStruct {
pub timeout: u16,
}Expand description
Get the over-current timeout
Fields§
§timeout: u16If the battery current exceeds the configured limit for this duration of time, the power will be locked-out
Trait Implementations§
Source§impl Clone for CurrentTimeoutStruct
impl Clone for CurrentTimeoutStruct
Source§fn clone(&self) -> CurrentTimeoutStruct
fn clone(&self) -> CurrentTimeoutStruct
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 moreSource§impl Debug for CurrentTimeoutStruct
impl Debug for CurrentTimeoutStruct
Source§impl Default for CurrentTimeoutStruct
impl Default for CurrentTimeoutStruct
Source§fn default() -> CurrentTimeoutStruct
fn default() -> CurrentTimeoutStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentTimeoutStruct
impl<'de> Deserialize<'de> for CurrentTimeoutStruct
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
Source§impl DeserializePayload for CurrentTimeoutStruct
impl DeserializePayload for CurrentTimeoutStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl MessageInfo for CurrentTimeoutStruct
impl MessageInfo for CurrentTimeoutStruct
Source§impl PartialEq for CurrentTimeoutStruct
impl PartialEq for CurrentTimeoutStruct
Source§impl Serialize for CurrentTimeoutStruct
impl Serialize for CurrentTimeoutStruct
impl StructuralPartialEq for CurrentTimeoutStruct
Auto Trait Implementations§
impl Freeze for CurrentTimeoutStruct
impl RefUnwindSafe for CurrentTimeoutStruct
impl Send for CurrentTimeoutStruct
impl Sync for CurrentTimeoutStruct
impl Unpin for CurrentTimeoutStruct
impl UnwindSafe for CurrentTimeoutStruct
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