pub struct Sse {
pub event: Option<String>,
pub data: Option<String>,
pub id: Option<String>,
pub retry: Option<u64>,
}Fields§
§event: Option<String>§data: Option<String>§id: Option<String>§retry: Option<u64>Implementations§
Source§impl Sse
impl Sse
pub fn is_event(&self) -> bool
pub fn is_message(&self) -> bool
pub fn event(self, event: impl Into<String>) -> Self
pub fn data(self, data: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
pub fn retry(self, retry: u64) -> Self
pub fn retry_duration(self, retry: Duration) -> Self
Trait Implementations§
impl Eq for Sse
impl StructuralPartialEq for Sse
Auto Trait Implementations§
impl Freeze for Sse
impl RefUnwindSafe for Sse
impl Send for Sse
impl Sync for Sse
impl Unpin for Sse
impl UnwindSafe for Sse
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