#[repr(C)]pub struct Buf {
pub ptr: *mut u8,
pub len: usize,
pub cap: usize,
}Expand description
A byte buffer allocated by the plugin. The host reads it, then returns it through the plugin’s own free function; it never frees plugin memory with its own allocator.
Fields§
§ptr: *mut u8§len: usize§cap: usizeImplementations§
Auto Trait Implementations§
impl Freeze for Buf
impl RefUnwindSafe for Buf
impl !Send for Buf
impl !Sync for Buf
impl Unpin for Buf
impl UnsafeUnpin for Buf
impl UnwindSafe for Buf
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.