pub struct OriginateContext { /* private fields */ }Expand description
Opaque adapter-owned options for one outbound originate operation.
Core transports this value without inspecting it. An adapter defines its
own context type and recovers it with Self::downcast_ref or
Self::downcast_arc. The concrete type and value are intentionally
omitted from Debug; this type implements neither Display nor
serialization.
Implementations§
Source§impl OriginateContext
impl OriginateContext
Sourcepub fn new<T>(value: T) -> OriginateContext
pub fn new<T>(value: T) -> OriginateContext
Wrap adapter-owned, immutable originate options.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>
pub fn downcast_ref<T>(&self) -> Option<&T>
Borrow the adapter-owned options when their concrete type matches.
Trait Implementations§
Source§impl Clone for OriginateContext
impl Clone for OriginateContext
Source§fn clone(&self) -> OriginateContext
fn clone(&self) -> OriginateContext
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 Debug for OriginateContext
impl Debug for OriginateContext
Source§impl Default for OriginateContext
impl Default for OriginateContext
Source§fn default() -> OriginateContext
fn default() -> OriginateContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OriginateContext
impl !UnwindSafe for OriginateContext
impl Freeze for OriginateContext
impl Send for OriginateContext
impl Sync for OriginateContext
impl Unpin for OriginateContext
impl UnsafeUnpin for OriginateContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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