introduce mode commands to python client
All checks were successful
Rust/sat-rs/pipeline/pr-main This commit looks good

This commit is contained in:
2024-04-03 14:55:23 +02:00
parent 575003db94
commit 68908f53d4
4 changed files with 87 additions and 28 deletions

View File

@ -179,6 +179,14 @@ impl From<GenericTargetedMessagingError> for ModeError {
pub trait ModeProvider {
fn mode_and_submode(&self) -> ModeAndSubmode;
fn mode(&self) -> Mode {
self.mode_and_submode().mode()
}
fn submode(&self) -> Submode {
self.mode_and_submode().submode()
}
}
pub trait ModeRequestHandler: ModeProvider {