pub struct ServerEvent { /* private fields */ }Implementations§
Source§impl ServerEvent
impl ServerEvent
pub fn new() -> Self
pub fn id(&self) -> &Option<String>
pub fn event(&self) -> &Option<String>
pub fn data(&self) -> &Vec<String>
pub fn add_data(&mut self, data: String)
pub fn retry(&self) -> &Option<u64>
pub fn parse(data: &Bytes) -> Result<ServerEvent, DeboaExtrasError>
Trait Implementations§
Source§impl Debug for ServerEvent
impl Debug for ServerEvent
Auto Trait Implementations§
impl Freeze for ServerEvent
impl RefUnwindSafe for ServerEvent
impl Send for ServerEvent
impl Sync for ServerEvent
impl Unpin for ServerEvent
impl UnsafeUnpin for ServerEvent
impl UnwindSafe for ServerEvent
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