pub struct DomainEventBytes(pub Bytes);Expand description
零拷贝事件字节。bytes::Bytes 引用计数,clone = O(1)。
core 不解析内容,只搬运已序列化的字节。
Tuple Fields§
§0: BytesTrait Implementations§
Source§impl Clone for DomainEventBytes
impl Clone for DomainEventBytes
Source§fn clone(&self) -> DomainEventBytes
fn clone(&self) -> DomainEventBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for DomainEventBytes
impl RefUnwindSafe for DomainEventBytes
impl Send for DomainEventBytes
impl Sync for DomainEventBytes
impl Unpin for DomainEventBytes
impl UnsafeUnpin for DomainEventBytes
impl UnwindSafe for DomainEventBytes
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