Struct saphir::RequestAddon
source · pub struct RequestAddon { /* private fields */ }
Expand description
Implementations
sourceimpl RequestAddon
impl RequestAddon
sourcepub fn new<T>(name: String, data: T) -> Selfwhere
T: 'static + Any + Send,
pub fn new<T>(name: String, data: T) -> Selfwhere
T: 'static + Any + Send,
Create a new RequestParam
sourcepub fn borrow_as<T: 'static + Any + Send>(&self) -> Option<&T>
pub fn borrow_as<T: 'static + Any + Send>(&self) -> Option<&T>
Retrieve RequestParam as Ref of type T, or none if the conversion failed
Trait Implementations
sourceimpl Debug for RequestAddon
impl Debug for RequestAddon
Auto Trait Implementations
impl !RefUnwindSafe for RequestAddon
impl Send for RequestAddon
impl !Sync for RequestAddon
impl Unpin for RequestAddon
impl !UnwindSafe for RequestAddon
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