pub struct SysCallSlice<'a> { /* private fields */ }
Expand description
An Immutable System Call Slice
This represents an immutable slice of bytes, e.g. &[u8]
, across
a system call boundary.
This type is typically created by calling .into()
on a slice.
The lifetime of the original slice is maintained by the lifetime
parameter 'a
.
§Example
let sli: &[u8] = &[0, 1, 2, 3];
let scs: SysCallSlice<'_> = sli.into();
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for SysCallSlice<'a>
impl<'de, 'a> Deserialize<'de> for SysCallSlice<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a [u8]> for SysCallSlice<'a>
impl<'a> From<&'a [u8]> for SysCallSlice<'a>
Source§impl<'a> From<SysCallSliceMut<'a>> for SysCallSlice<'a>
impl<'a> From<SysCallSliceMut<'a>> for SysCallSlice<'a>
Source§fn from(sli: SysCallSliceMut<'a>) -> Self
fn from(sli: SysCallSliceMut<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for SysCallSlice<'a>
impl<'a> RefUnwindSafe for SysCallSlice<'a>
impl<'a> Send for SysCallSlice<'a>
impl<'a> Sync for SysCallSlice<'a>
impl<'a> Unpin for SysCallSlice<'a>
impl<'a> UnwindSafe for SysCallSlice<'a>
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