pub enum PipeMessageData {
Owned(Vec<u8>),
Vmspliced(Arc<VmsplicePayload>),
}Variants§
Trait Implementations§
Source§impl Debug for PipeMessageData
impl Debug for PipeMessageData
Source§impl MessageData for PipeMessageData
impl MessageData for PipeMessageData
Source§fn copy_from_user(
data: &mut dyn InputBuffer,
limit: usize,
) -> Result<Self, Errno>
fn copy_from_user( data: &mut dyn InputBuffer, limit: usize, ) -> Result<Self, Errno>
Copies data from user memory into a new MessageData object.
Source§fn with_bytes<O, F: FnMut(&[u8]) -> Result<O, Errno>>(
&self,
f: F,
) -> Result<O, Errno>
fn with_bytes<O, F: FnMut(&[u8]) -> Result<O, Errno>>( &self, f: F, ) -> Result<O, Errno>
Calls the provided function with this data’s bytes.
Source§fn split_off(&mut self, index: usize) -> Option<Self>
fn split_off(&mut self, index: usize) -> Option<Self>
Splits the message data at
index. Read moreSource§fn copy_to_user(&self, data: &mut dyn OutputBuffer) -> Result<usize, Errno>
fn copy_to_user(&self, data: &mut dyn OutputBuffer) -> Result<usize, Errno>
Copies the message out to the output buffer. Read more
Source§fn clone_at_most(&self, limit: usize) -> Self
fn clone_at_most(&self, limit: usize) -> Self
Clones this data up to a limit.
Auto Trait Implementations§
impl Freeze for PipeMessageData
impl !RefUnwindSafe for PipeMessageData
impl Send for PipeMessageData
impl Sync for PipeMessageData
impl Unpin for PipeMessageData
impl !UnwindSafe for PipeMessageData
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.