Enum rp2040_log_to_cdc::State
source · pub(crate) enum State<'a> {
Show 14 variants
Start,
ReleaseReset,
GetVersionInformation,
SetOperationModeForActiveScan,
ActiveScan,
SetOperationModeForRouteB(Channel),
SetRouteBPanaAuthenticationInformation,
StartRouteBOperation,
OpenUdpPort,
StartRouteBPana,
Loop(u64),
Wait(Instant, Box<dyn FnOnce() -> State<'a> + 'a>),
WaitForResponse(Box<dyn FnMut(Response) -> Option<State<'a>> + 'a>),
SendCommand {
buf: Vec<u8>,
sent: usize,
next_state: Box<State<'a>>,
},
}
Variants§
Start
ReleaseReset
GetVersionInformation
SetOperationModeForActiveScan
ActiveScan
SetOperationModeForRouteB(Channel)
SetRouteBPanaAuthenticationInformation
StartRouteBOperation
OpenUdpPort
StartRouteBPana
Loop(u64)
Wait(Instant, Box<dyn FnOnce() -> State<'a> + 'a>)
WaitForResponse(Box<dyn FnMut(Response) -> Option<State<'a>> + 'a>)
SendCommand
Auto Trait Implementations§
impl<'a> Freeze for State<'a>
impl<'a> !RefUnwindSafe for State<'a>
impl<'a> !Send for State<'a>
impl<'a> !Sync for State<'a>
impl<'a> Unpin for State<'a>
impl<'a> !UnwindSafe for State<'a>
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
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
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