mirror of https://github.com/bastion-rs/bastion
early wip
This commit is contained in:
parent
4e11c1dee4
commit
bc3997d0c1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue