pub struct SecurityRequestView<'a> { /* private fields */ }Expand description
Minimal borrowed projection of an inbound or outbound request.
Implementations§
Source§impl<'a> SecurityRequestView<'a>
impl<'a> SecurityRequestView<'a>
Sourcepub fn new(
code: i32,
version: i32,
fields: &'a HashMap<CheetahString, CheetahString>,
body: Option<&'a [u8]>,
peer: Option<&'a PeerInfo>,
) -> Self
pub fn new( code: i32, version: i32, fields: &'a HashMap<CheetahString, CheetahString>, body: Option<&'a [u8]>, peer: Option<&'a PeerInfo>, ) -> Self
Creates a new SecurityRequestView.
Sourcepub fn fields(&self) -> &'a HashMap<CheetahString, CheetahString>
pub fn fields(&self) -> &'a HashMap<CheetahString, CheetahString>
Returns the fields.
Trait Implementations§
Source§impl<'a> Clone for SecurityRequestView<'a>
impl<'a> Clone for SecurityRequestView<'a>
impl<'a> Copy for SecurityRequestView<'a>
Auto Trait Implementations§
impl<'a> Freeze for SecurityRequestView<'a>
impl<'a> RefUnwindSafe for SecurityRequestView<'a>
impl<'a> Send for SecurityRequestView<'a>
impl<'a> Sync for SecurityRequestView<'a>
impl<'a> Unpin for SecurityRequestView<'a>
impl<'a> UnsafeUnpin for SecurityRequestView<'a>
impl<'a> UnwindSafe for SecurityRequestView<'a>
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