pub struct SseEvent { /* private fields */ }
Implementations§
source§impl SseEvent
impl SseEvent
pub fn builder() -> Builder
pub fn with_data(data: impl Display) -> Self
pub fn with_event_data( event: impl Into<String>, data: impl Display, ) -> Result<Self, InvalidSseEvent>
pub fn id(&self) -> Option<&str>
pub fn event(&self) -> Option<&str>
pub fn data(&self) -> &str
pub fn retry(&self) -> Option<usize>
Trait Implementations§
source§impl Ord for SseEvent
impl Ord for SseEvent
source§impl PartialOrd for SseEvent
impl PartialOrd for SseEvent
impl Eq for SseEvent
impl StructuralPartialEq for SseEvent
Auto Trait Implementations§
impl Freeze for SseEvent
impl RefUnwindSafe for SseEvent
impl Send for SseEvent
impl Sync for SseEvent
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)