Struct usb_host::setup::RequestType
source · [−]#[repr(C)]pub struct RequestType(_);
Implementations
sourceimpl RequestType
impl RequestType
pub fn recipient(self) -> Result<RequestRecipient, &'static str>
pub fn set_recipient(&mut self, v: RequestRecipient)
pub fn kind(self) -> Result<RequestKind, &'static str>
pub fn set_kind(&mut self, v: RequestKind)
pub fn direction(self) -> Result<RequestDirection, &'static str>
pub fn set_direction(&mut self, v: RequestDirection)
Trait Implementations
sourceimpl Clone for RequestType
impl Clone for RequestType
sourcefn clone(&self) -> RequestType
fn clone(&self) -> RequestType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RequestType
impl Debug for RequestType
sourceimpl From<(RequestDirection, RequestKind, RequestRecipient)> for RequestType
impl From<(RequestDirection, RequestKind, RequestRecipient)> for RequestType
sourcefn from(v: (RequestDirection, RequestKind, RequestRecipient)) -> Self
fn from(v: (RequestDirection, RequestKind, RequestRecipient)) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<RequestType> for RequestType
impl PartialEq<RequestType> for RequestType
sourcefn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
impl Copy for RequestType
impl StructuralPartialEq for RequestType
Auto Trait Implementations
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnwindSafe for RequestType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more