pub struct EventBusHook { /* private fields */ }Expand description
A MutationHook that bridges core mutations to the server’s EventBus broadcast channel.
Register this hook so ALL mutations (gRPC, auto-linker, library mode) emit SSE events.
Implementations§
Trait Implementations§
Source§impl MutationHook for EventBusHook
impl MutationHook for EventBusHook
Source§fn on_node_mutation(&self, node: &Node, action: MutationAction)
fn on_node_mutation(&self, node: &Node, action: MutationAction)
Called after a node is created, updated, or deleted.
Source§fn on_edge_mutation(&self, edge: &Edge, action: MutationAction)
fn on_edge_mutation(&self, edge: &Edge, action: MutationAction)
Called after an edge is created, updated, or deleted.
Auto Trait Implementations§
impl Freeze for EventBusHook
impl !RefUnwindSafe for EventBusHook
impl Send for EventBusHook
impl Sync for EventBusHook
impl Unpin for EventBusHook
impl UnsafeUnpin for EventBusHook
impl !UnwindSafe for EventBusHook
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more