early wip

This commit is contained in:
o0Ignition0o 2021-08-22 12:02:01 +02:00
parent 4e11c1dee4
commit bc3997d0c1
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ use crate::child_ref::ChildRef;
use crate::children_ref::ChildrenRef;
use crate::dispatcher::{BroadcastTarget, DispatcherType, NotificationType};
use crate::envelope::{Envelope, RefAddr, SignedMessage};
use crate::global_state::GlobalState;
use crate::message::{Answer, BastionMessage, Message, Msg};
use crate::supervisor::SupervisorRef;
use crate::{prelude::ReceiveError, system::SYSTEM};
@ -816,6 +817,10 @@ impl ContextState {
pub(crate) fn mailbox_size(&self) -> u32 {
self.messages.len() as _
}
pub fn state(&self) -> GlobalState {
SYSTEM.state()
}
}
impl Display for BastionId {