pub enum InterfaceAction {
Shutdown,
Message(Transaction),
Subscribe(Simple),
}Expand description
Each module that wants to interact with the Switch has a custom enum of possible cases. This is to avoid having to handle a lot of impossible cases in the Switch loop.
Variants§
Shutdown
Will shut down the Switch thread. (But nothing else).
Message(Transaction)
Send a complete Transaction to the Switch (and to the TcpHandler from there). The restrictions and rules described in the send function apply.
Subscribe(Simple)
Passes a new Simple (minified version of the Topic) to the Switch, from where the Subscribe info will be distributed through the system.
Auto Trait Implementations§
impl Freeze for InterfaceAction
impl RefUnwindSafe for InterfaceAction
impl Send for InterfaceAction
impl !Sync for InterfaceAction
impl Unpin for InterfaceAction
impl UnwindSafe for InterfaceAction
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