pub struct Request<'a> { /* private fields */ }
Expand description
An inspection request.
Implementations§
source§impl<'a> Request<'a>
impl<'a> Request<'a>
sourcepub fn update(self) -> Result<UpdateRequest<'a>, Self>
pub fn update(self) -> Result<UpdateRequest<'a>, Self>
Returns an object used for handling an update request.
If this is not an update request, returns Err(self)
.
sourcepub fn respond(self) -> Response<'a>
pub fn respond(self) -> Response<'a>
Responds to the inspection request with a directory node.
Returns an object that can be used to provide the inspection results.
sourcepub fn sensitivity(&self) -> SensitivityLevel
pub fn sensitivity(&self) -> SensitivityLevel
Gets the sensitivity level for this request.
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> !RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> !UnwindSafe for Request<'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