pub struct Request {
pub tx_frames: Range,
pub rx_frames: Option<Box<Range>>,
}Expand description
Represents an RPMB operation, which consists of sending one or more frames then receiving zero or more frames. The tx_frames and rx_frames VMOs will be transferred to the protocol implementation, so clients should keep duplicates of them if access is needed after the call to Request(). The request will be aborted as soon as an error is encountered, meaning the read operation will not be performed if the write operation failed. Invalid parameters passed through tx_frames or rx_frames will cause an error to be returned immediately, without either operation having been performed.
Fields§
§tx_frames: Range§rx_frames: Option<Box<Range>>Trait Implementations§
Source§impl<___E> Encode<Request<'static>, ___E> for Requestwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<Request<'static>, ___E> for Requestwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§impl<___E> EncodeOption<Box<'static, Request<'static>>, ___E> for Request
impl<___E> EncodeOption<Box<'static, Request<'static>>, ___E> for Request
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Request<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Request<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value 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]