pub struct Hub { /* private fields */ }Implementations§
Source§impl Hub
impl Hub
Sourcepub fn with_m4a(self, m4a: Box<dyn M4a>) -> Self
pub fn with_m4a(self, m4a: Box<dyn M4a>) -> Self
Talk to sessions over m4a with this gateway (wake + run.close reader).
pub fn m4a_enabled(&self) -> bool
Sourcepub fn poll_m4a(&self) -> usize
pub fn poll_m4a(&self) -> usize
Read run.close letters from the sessions of active runs. Each letter is handled once
(op id m4a:<event_id>). Returns how many runs were closed.
Sourcepub fn recommend(&self, role: &str) -> Result<Value, HubError>
pub fn recommend(&self, role: &str) -> Result<Value, HubError>
Routing recommendation for role (operator API and node door).
pub fn open(data_dir: &Path) -> Result<Self, ServerError>
Auto Trait Implementations§
impl !Freeze for Hub
impl !RefUnwindSafe for Hub
impl !UnwindSafe for Hub
impl Send for Hub
impl Sync for Hub
impl Unpin for Hub
impl UnsafeUnpin for Hub
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