pub struct FileEventSubscription { /* private fields */ }Expand description
A subscription handle for file events SSE stream
Implementations§
Source§impl FileEventSubscription
impl FileEventSubscription
Sourcepub async fn next_event(&mut self) -> ApiResult<Option<FileEvent>>
pub async fn next_event(&mut self) -> ApiResult<Option<FileEvent>>
Receive the next file event from the stream. Returns None when the stream ends.
Auto Trait Implementations§
impl !RefUnwindSafe for FileEventSubscription
impl !UnwindSafe for FileEventSubscription
impl Freeze for FileEventSubscription
impl Send for FileEventSubscription
impl Sync for FileEventSubscription
impl Unpin for FileEventSubscription
impl UnsafeUnpin for FileEventSubscription
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