()
| 36 | |
| 37 | impl Toast { |
| 38 | pub fn new() -> Self { |
| 39 | Self { |
| 40 | message: None, |
| 41 | variant: ToastVariant::Info, |
| 42 | duration_ms: 3000, |
| 43 | phase: ToastPhase::Entering, |
| 44 | phase_elapsed_ms: 0, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | pub fn show(&mut self, variant: ToastVariant, message: &str, duration_ms: u64) { |
| 49 | self.variant = variant; |
nothing calls this directly
no outgoing calls
no test coverage detected