pub enum Request {
V1(RequestV1),
V2(RequestV2),
}
Variants§
Implementations§
source§impl Request
impl Request
pub fn to_ref<'__superstruct>( &'__superstruct self, ) -> RequestRef<'__superstruct>
pub fn to_mut<'__superstruct>( &'__superstruct mut self, ) -> RequestRefMut<'__superstruct>
pub fn as_v1(&self) -> Result<&RequestV1, ()>
pub fn as_v1_mut(&mut self) -> Result<&mut RequestV1, ()>
pub fn as_v2(&self) -> Result<&RequestV2, ()>
pub fn as_v2_mut(&mut self) -> Result<&mut RequestV2, ()>
pub fn start(&self) -> &u16
pub fn start_mut(&mut self) -> &mut u16
pub fn end(&self) -> Result<&u16, ()>
pub fn end_mut(&mut self) -> Result<&mut u16, ()>
Trait Implementations§
source§impl<'__superstruct> From<&'__superstruct Request> for RequestRef<'__superstruct>
impl<'__superstruct> From<&'__superstruct Request> for RequestRef<'__superstruct>
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