pub struct SessionOptions {
pub time_base_unix_ns: i64,
pub participants: Vec<ParticipantEntry>,
pub topics: Vec<TopicKey>,
}Expand description
Setup-Optionen fuer eine Session.
Fields§
§time_base_unix_ns: i64UNIX-Epoch-Anchor in Nanosekunden — Frame-Timestamps sind Deltas dazu.
participants: Vec<ParticipantEntry>Vorab-bekannte Participants (GUID + Name).
topics: Vec<TopicKey>Vorab-bekannte Topics. Falls ein Topic kommt das hier nicht
drin ist, ignoriert die Session den Sample (Counter
samples_dropped_unknown_topic wird inkrementiert).
Implementations§
Source§impl SessionOptions
impl SessionOptions
Sourcepub fn new(time_base_unix_ns: i64) -> Self
pub fn new(time_base_unix_ns: i64) -> Self
Konstruktor mit time_base_unix_ns und leeren Listen.
Sourcepub fn with_participant(self, p: ParticipantEntry) -> Self
pub fn with_participant(self, p: ParticipantEntry) -> Self
Fuegt einen Participant hinzu (Builder-Form).
Sourcepub fn with_topic(self, t: TopicKey) -> Self
pub fn with_topic(self, t: TopicKey) -> Self
Fuegt ein Topic hinzu (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