pub struct DialogRestoreContext { /* private fields */ }Expand description
Fresh runtime resources and policy required to attach a decoded dialog.
The context is borrowed during restoration. A refusal therefore does not consume or stop its
media session, mutate its endpoint, or create a transaction. elapsed_since_capture and now
are explicit so no persisted process-local instant is ever interpreted in a new process and
downtime cannot silently renew a retained session timer.
Implementations§
Source§impl DialogRestoreContext
impl DialogRestoreContext
Sourcepub fn new(
endpoint: Handle,
target: Target,
media: Arc<MediaSession>,
media_address: MediaAddress,
remote_media: SocketAddr,
policy: MediaPolicy,
direction: Direction,
elapsed_since_capture: Duration,
now: Instant,
) -> Self
pub fn new( endpoint: Handle, target: Target, media: Arc<MediaSession>, media_address: MediaAddress, remote_media: SocketAddr, policy: MediaPolicy, direction: Direction, elapsed_since_capture: Duration, now: Instant, ) -> Self
Describe already-created runtime resources without starting any new work.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DialogRestoreContext
impl !RefUnwindSafe for DialogRestoreContext
impl Send for DialogRestoreContext
impl Sync for DialogRestoreContext
impl Unpin for DialogRestoreContext
impl UnsafeUnpin for DialogRestoreContext
impl !UnwindSafe for DialogRestoreContext
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more