Struct zenoh_flow_nodes::prelude::Data
source · pub struct Data<T> { /* private fields */ }Expand description
A Data<T> is a wrapper around T given by a typed Input<T>.
A Data<T> automatically dereferences to a &T.
§Performance
If the upstream node does not reside on the same Zenoh-Flow runtime, dereferencing to &T incurs some additional
operations: the received Payload will then necessarily be serialised and must first be deserialised.
To perform the deserialisation, the deserialiser function passed to the
Input<T> will be called.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Data<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Data<T>
impl<T> Send for Data<T>where
T: Send,
impl<T> Sync for Data<T>where
T: Sync,
impl<T> Unpin for Data<T>where
T: Unpin,
impl<T> !UnwindSafe for Data<T>
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