pub struct SessionOptions {
pub time_base_unix_ns: i64,
pub participants: Vec<ParticipantEntry>,
pub topics: Vec<TopicKey>,
}Expand description
Setup options for a session.
Fields§
§time_base_unix_ns: i64UNIX epoch anchor in nanoseconds — frame timestamps are deltas relative to it.
participants: Vec<ParticipantEntry>Pre-known participants (GUID + name).
topics: Vec<TopicKey>Pre-known topics. If a topic arrives that is not
in here, the session ignores the sample (the counter
samples_dropped_unknown_topic is incremented).
Implementations§
Source§impl SessionOptions
impl SessionOptions
Sourcepub fn with_participant(self, p: ParticipantEntry) -> Self
pub fn with_participant(self, p: ParticipantEntry) -> Self
Adds a participant (builder form).
Sourcepub fn with_topic(self, t: TopicKey) -> Self
pub fn with_topic(self, t: TopicKey) -> Self
Adds a topic (builder form).
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
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 Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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