pub struct CallParams {
pub id: Option<String>,
pub dump_events: Option<bool>,
pub ping_interval: Option<u32>,
pub server_side_track: Option<String>,
pub forward: Option<bool>,
pub visited: Option<String>,
}Fields§
§id: Option<String>§dump_events: Option<bool>§ping_interval: Option<u32>§server_side_track: Option<String>§forward: Option<bool>Set when this connection is a one-hop find from another node.
Only an empty forward may be forwarded. A present value is answered
locally only and must never hop again. forward=true must 404 if the
session is absent (do not create a new call).
visited: Option<String>Ignored. Kept so older nodes that still send visited= can deserialize.
Implementations§
Source§impl CallParams
impl CallParams
Sourcepub fn to_forward_query(&self) -> String
pub fn to_forward_query(&self) -> String
Build the query string used when forwarding this request to a peer.
Sets forward=true so the peer will not hop (forward is no longer empty).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallParams
impl<'de> Deserialize<'de> for CallParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallParams
impl RefUnwindSafe for CallParams
impl Send for CallParams
impl Sync for CallParams
impl Unpin for CallParams
impl UnsafeUnpin for CallParams
impl UnwindSafe for CallParams
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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