pub struct HubNodeSink { /* private fields */ }Implementations§
Source§impl HubNodeSink
impl HubNodeSink
pub fn new(hub: Arc<Hub>) -> Self
Sourcepub fn apply(&self, call: &ForwardedCall) -> (u16, Value)
pub fn apply(&self, call: &ForwardedCall) -> (u16, Value)
Apply one call (blocking). Returns (status, JSON body).
Sourcepub fn handler(self: Arc<Self>) -> CoreHandler
pub fn handler(self: Arc<Self>) -> CoreHandler
Drain handler for m4a / g4a node-call channels: {"op","payload"} in,
{"status","body"} out.
Auto Trait Implementations§
impl Freeze for HubNodeSink
impl RefUnwindSafe for HubNodeSink
impl Send for HubNodeSink
impl Sync for HubNodeSink
impl Unpin for HubNodeSink
impl UnsafeUnpin for HubNodeSink
impl UnwindSafe for HubNodeSink
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