pub struct FeedbackController { /* private fields */ }Expand description
Pure deterministic controller. It cannot alter the send budget or retained storage.
Implementations§
Source§impl FeedbackController
impl FeedbackController
pub fn new( policy: FeedbackPolicy, identity: StreamIdentity, destination: [u8; 16], baseline: u16, ) -> Result<Self>
pub fn snapshot(&self) -> FeedbackSnapshot
pub fn invalid_report(&mut self)
pub fn tick(&mut self, now: CuTime)
Sourcepub fn receive(&mut self, report: ReceiverReport, now: CuTime) -> bool
pub fn receive(&mut self, report: ReceiverReport, now: CuTime) -> bool
Returns whether an accepted report requests the existing retained recovery bundle.
Auto Trait Implementations§
impl Freeze for FeedbackController
impl RefUnwindSafe for FeedbackController
impl Send for FeedbackController
impl Sync for FeedbackController
impl Unpin for FeedbackController
impl UnsafeUnpin for FeedbackController
impl UnwindSafe for FeedbackController
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> GetTypeRegistration for T
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