pub struct VentService { /* private fields */ }Expand description
Shared vent submission service used by the MCP server and CLI. Validates vent input and dispatches one event through configured channel sinks.
Implementations§
Source§impl VentService
impl VentService
Sourcepub fn new(config: RuntimeConfig, project: String) -> Self
pub fn new(config: RuntimeConfig, project: String) -> Self
Builds a service from validated runtime config and a project directory label.
Sourcepub fn list_channels(&self) -> ListChannelsOutput
pub fn list_channels(&self) -> ListChannelsOutput
Returns configured channels and the default channel name.
Sourcepub async fn send(&self, request: VentRequest) -> VentOutput
pub async fn send(&self, request: VentRequest) -> VentOutput
Trims input, enforces channel policy, dispatches one event, and reports the first sink failure.
Trait Implementations§
Source§impl Clone for VentService
impl Clone for VentService
Source§fn clone(&self) -> VentService
fn clone(&self) -> VentService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for VentService
impl !UnwindSafe for VentService
impl Freeze for VentService
impl Send for VentService
impl Sync for VentService
impl Unpin for VentService
impl UnsafeUnpin for VentService
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