introduce mode commands to python client
All checks were successful
Rust/sat-rs/pipeline/pr-main This commit looks good
All checks were successful
Rust/sat-rs/pipeline/pr-main This commit looks good
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user