Struct cometd_client::types::Data
source · pub struct Data<Msg> {
pub channel: Option<String>,
pub message: Option<Msg>,
}
Expand description
Contains channel name of message received from cometd server.
Fields§
§channel: Option<String>
Channel name from which was received message.
message: Option<Msg>
Received message.
Trait Implementations§
Auto Trait Implementations§
impl<Msg> RefUnwindSafe for Data<Msg>where Msg: RefUnwindSafe,
impl<Msg> Send for Data<Msg>where Msg: Send,
impl<Msg> Sync for Data<Msg>where Msg: Sync,
impl<Msg> Unpin for Data<Msg>where Msg: Unpin,
impl<Msg> UnwindSafe for Data<Msg>where Msg: UnwindSafe,
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