pub struct Buffer {
pub vmo: Vmo,
pub size: u64,
}
Expand description
A buffer for data whose size is not necessarily a multiple of the page size.
DEPRECATED: This type is superfluous and deprecated. Instead of using this type, use a zx.Handle:VMO object and store the size of the contents in the ZX_PROP_VMO_CONTENT_SIZE property.
Fields§
§vmo: Vmo
§size: u64
Trait Implementations§
Source§impl CompatFrom<Buffer> for Buffer
impl CompatFrom<Buffer> for Buffer
Source§fn compat_from(value: Buffer) -> Self
fn compat_from(value: Buffer) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<Buffer> for Buffer
impl CompatFrom<Buffer> for Buffer
Source§fn compat_from(value: Buffer) -> Self
fn compat_from(value: Buffer) -> Self
Converts
value
into a value of this type.Source§impl Encodable for Buffer
impl Encodable for Buffer
Source§type Encoded = WireBuffer
type Encoded = WireBuffer
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl EncodableOption for Buffer
impl EncodableOption for Buffer
Source§type EncodedOption = WireBox<'static, WireBuffer>
type EncodedOption = WireBox<'static, WireBuffer>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for Bufferwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for Bufferwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Buffer
impl<___E> EncodeOption<___E> for Buffer
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWire<WireBuffer> for Buffer
impl FromWire<WireBuffer> for Buffer
Source§fn from_wire(wire: WireBuffer) -> Self
fn from_wire(wire: WireBuffer) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
impl StructuralPartialEq for Buffer
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§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
]