pub struct AeronArchiveReplayParamsBuilder { /* private fields */ }Expand description
Fluent builder for AeronArchiveReplayParams, starting from aeron’s defaults
(every field AERON_NULL_VALUE: replay from the recording start to its end, with the
context-default file IO length and no bounding counter).
Implementations§
Source§impl AeronArchiveReplayParamsBuilder
impl AeronArchiveReplayParamsBuilder
Sourcepub fn position(self, position: i64) -> Self
pub fn position(self, position: i64) -> Self
Start the replay from this position (default: the recording’s start).
Sourcepub fn length(self, length: i64) -> Self
pub fn length(self, length: i64) -> Self
Replay this many bytes (default: to the recording’s end).
Sourcepub fn follow_live(self) -> Self
pub fn follow_live(self) -> Self
Follow a live recording after the recorded portion (length = i64::MAX).
Sourcepub fn bounded_by(self, counter_id: i32) -> Self
pub fn bounded_by(self, counter_id: i32) -> Self
Bound the replay by this counter (triggers a bounded replay request).
Sourcepub fn file_io_max_length(self, length: i32) -> Self
pub fn file_io_max_length(self, length: i32) -> Self
Maximum size of an archive file IO operation during the replay.
Sourcepub fn replay_token(self, token: i64) -> Self
pub fn replay_token(self, token: i64) -> Self
Token for replays where the initiating image did not create the archive session.
Sourcepub fn subscription_registration_id(self, registration_id: i64) -> Self
pub fn subscription_registration_id(self, registration_id: i64) -> Self
Subscription registration id for response-channel replays on an existing channel.
pub fn build(self) -> Result<AeronArchiveReplayParams, AeronCError>
Trait Implementations§
Source§impl Clone for AeronArchiveReplayParamsBuilder
impl Clone for AeronArchiveReplayParamsBuilder
Source§fn clone(&self) -> AeronArchiveReplayParamsBuilder
fn clone(&self) -> AeronArchiveReplayParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 AeronArchiveReplayParamsBuilder
impl RefUnwindSafe for AeronArchiveReplayParamsBuilder
impl Send for AeronArchiveReplayParamsBuilder
impl Sync for AeronArchiveReplayParamsBuilder
impl Unpin for AeronArchiveReplayParamsBuilder
impl UnsafeUnpin for AeronArchiveReplayParamsBuilder
impl UnwindSafe for AeronArchiveReplayParamsBuilder
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