pub struct ModuleSwitchOff;Expand description
5.2 Module switch off +CPWROFF
Switches off the MT. During shut-down current settings are saved in module’s non-volatile memory
Notes:
- Using this command can result in the following command line being ignored.
- See the corresponding System Integration Manual for the timing and the electrical details of the module power-off sequence via the +CPWROFF command.
Trait Implementations§
Source§impl AtatCmd for ModuleSwitchOff
impl AtatCmd for ModuleSwitchOff
Source§const MAX_TIMEOUT_MS: u32 = 40000u32
const MAX_TIMEOUT_MS: u32 = 40000u32
The max timeout in milliseconds.
Source§const ATTEMPTS: u8 = 1u8
const ATTEMPTS: u8 = 1u8
The max number of times to attempt a command with automatic retries if
using
send_retry.Source§type Response = NoResponse
type Response = NoResponse
The type of the response. Must implement the
AtatResp trait.Source§fn write(&self, buf: &mut [u8]) -> usize
fn write(&self, buf: &mut [u8]) -> usize
Write the command and return the number of written bytes.
Source§fn parse(
&self,
res: Result<&[u8], InternalError<'_>>,
) -> Result<Self::Response, Error>
fn parse( &self, res: Result<&[u8], InternalError<'_>>, ) -> Result<Self::Response, Error>
Parse the response into a
Self::Response or Error instance.Source§const REATTEMPT_ON_PARSE_ERR: bool = true
const REATTEMPT_ON_PARSE_ERR: bool = true
Whether or not to reattempt a command on a parse error
using
send_retry.Source§const EXPECTS_RESPONSE_CODE: bool = true
const EXPECTS_RESPONSE_CODE: bool = true
Force client to look for a response.
Empty slice is then passed to parse by client.
Implemented to enhance expandability of ATAT
Source§impl Clone for ModuleSwitchOff
impl Clone for ModuleSwitchOff
Auto Trait Implementations§
impl Forget for ModuleSwitchOff
impl Freeze for ModuleSwitchOff
impl Move for ModuleSwitchOff
impl RefUnwindSafe for ModuleSwitchOff
impl Send for ModuleSwitchOff
impl Sync for ModuleSwitchOff
impl Unpin for ModuleSwitchOff
impl UnsafeUnpin for ModuleSwitchOff
impl UnwindSafe for ModuleSwitchOff
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