pub struct CallContext { /* private fields */ }Implementations§
Source§impl CallContext
impl CallContext
pub fn new(listener: SharedEventListener, deadline: Option<Duration>) -> Self
pub fn from_factory( factory: &SharedEventListenerFactory, request: &Request<RequestBody>, deadline: Option<Duration>, ) -> Self
pub fn call_id(&self) -> CallId
pub fn listener(&self) -> &SharedEventListener
pub fn created_at(&self) -> Instant
pub fn deadline(&self) -> Option<Instant>
pub fn tls_alpn_preference(&self) -> TlsAlpnPreference
pub fn mark_connection_established(&self)
pub fn connection_established(&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 moreAuto 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