pub struct EventResource<'a> { /* private fields */ }Expand description
Resource accessor for the /event SSE endpoint.
Implementations§
Source§impl<'a> EventResource<'a>
impl<'a> EventResource<'a>
Sourcepub async fn list(&self) -> Result<SseStream<EventListResponse>, OpencodeError>
pub async fn list(&self) -> Result<SseStream<EventListResponse>, OpencodeError>
List events as an SSE stream.
The /event endpoint returns a Server-Sent Events stream where
each event’s data field is a JSON-encoded EventListResponse.
Auto Trait Implementations§
impl<'a> Freeze for EventResource<'a>
impl<'a> !RefUnwindSafe for EventResource<'a>
impl<'a> Send for EventResource<'a>
impl<'a> Sync for EventResource<'a>
impl<'a> Unpin for EventResource<'a>
impl<'a> !UnwindSafe for EventResource<'a>
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