pub struct SetCurrentTimeoutStruct {
pub timeout: u16,
}Expand description
Set 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 SetCurrentTimeoutStruct
impl Clone for SetCurrentTimeoutStruct
Source§fn clone(&self) -> SetCurrentTimeoutStruct
fn clone(&self) -> SetCurrentTimeoutStruct
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 SetCurrentTimeoutStruct
impl Debug for SetCurrentTimeoutStruct
Source§impl Default for SetCurrentTimeoutStruct
impl Default for SetCurrentTimeoutStruct
Source§fn default() -> SetCurrentTimeoutStruct
fn default() -> SetCurrentTimeoutStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetCurrentTimeoutStruct
impl<'de> Deserialize<'de> for SetCurrentTimeoutStruct
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 SetCurrentTimeoutStruct
impl DeserializePayload for SetCurrentTimeoutStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl PartialEq for SetCurrentTimeoutStruct
impl PartialEq for SetCurrentTimeoutStruct
Source§impl Serialize for SetCurrentTimeoutStruct
impl Serialize for SetCurrentTimeoutStruct
impl StructuralPartialEq for SetCurrentTimeoutStruct
Auto Trait Implementations§
impl Freeze for SetCurrentTimeoutStruct
impl RefUnwindSafe for SetCurrentTimeoutStruct
impl Send for SetCurrentTimeoutStruct
impl Sync for SetCurrentTimeoutStruct
impl Unpin for SetCurrentTimeoutStruct
impl UnwindSafe for SetCurrentTimeoutStruct
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