pub struct CallContext { /* private fields */ }Implementations§
Source§impl CallContext
impl CallContext
pub fn insert<T>(&mut self, value: T) -> Result<(), ContextError>
pub fn insert_portable<T>(&mut self, value: T) -> Result<(), ContextError>where
T: ContextValue,
pub fn with_value<T>(&self, value: T) -> Result<CallContext, ContextError>where
T: ContextValue,
pub fn with_values( &self, values: Vec<CallValue>, ) -> Result<CallContext, ContextError>
pub fn from_portable( values: Vec<CallValue>, ) -> Result<CallContext, ContextError>
pub fn get<T>(&self) -> Option<&T>
pub fn require<T>(&self) -> Result<&T, ContextError>
pub fn value<T>(&self) -> Result<Option<T>, ContextError>where
T: ContextValue,
pub fn portable(&self) -> Vec<CallValue>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CallContext
impl Default for CallContext
Source§fn default() -> CallContext
fn default() -> CallContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CallContext
impl !UnwindSafe for CallContext
impl Freeze for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
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