pub enum OutBuf {
Owned(Vec<u8>),
Static(&'static [u8]),
}Expand description
A buffer to send: owned (returned by Event::Sent for reuse) or static.
Variants§
Owned(Vec<u8>)
An owned buffer; all of len() bytes are sent.
Static(&'static [u8])
Static bytes, such as a fixed reply.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for OutBuf
impl Freeze for OutBuf
impl Move for OutBuf
impl RefUnwindSafe for OutBuf
impl Send for OutBuf
impl Sync for OutBuf
impl Unpin for OutBuf
impl UnsafeUnpin for OutBuf
impl UnwindSafe for OutBuf
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