pub struct SseEvent { /* private fields */ }Expand description
SSE 事件构建器
对 axum::response::sse::Event 的封装,提供更简洁的 API。
Implementations§
Source§impl SseEvent
impl SseEvent
Sourcepub fn into_axum_event(self) -> Result<AxumEvent, Infallible>
pub fn into_axum_event(self) -> Result<AxumEvent, Infallible>
转换为 axum Event
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseEvent
impl RefUnwindSafe for SseEvent
impl Send for SseEvent
impl Sync for SseEvent
impl Unpin for SseEvent
impl UnsafeUnpin for SseEvent
impl UnwindSafe for SseEvent
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