pub struct Envelope(pub ObsEnvelope);Expand description
Newtype wrapper around the wire ObsEnvelope so tests and downstream
code don’t depend directly on the buffa-generated type’s
Default + Clone shape (which is private to obs-proto’s codegen
boundary).
Tuple Fields§
§0: ObsEnvelopeImplementations§
Source§impl Envelope
impl Envelope
Sourcepub fn inner(&self) -> &ObsEnvelope
pub fn inner(&self) -> &ObsEnvelope
Borrow the inner envelope.
Sourcepub fn inner_mut(&mut self) -> &mut ObsEnvelope
pub fn inner_mut(&mut self) -> &mut ObsEnvelope
Mutate the inner envelope.
Sourcepub fn into_inner(self) -> ObsEnvelope
pub fn into_inner(self) -> ObsEnvelope
Take the inner envelope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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