pub struct RevisionContext { /* private fields */ }
Implementations§
Source§impl RevisionContext
impl RevisionContext
pub async fn connect() -> Result<Self, StreckenInfoError>
pub async fn get_first_revision(&mut self) -> Result<u32, StreckenInfoError>
Sourcepub async fn wait_for_new_revision_filtered_timeout(
&mut self,
only_new_disruptions: bool,
timeout: Option<Duration>,
) -> Result<u32, StreckenInfoError>
pub async fn wait_for_new_revision_filtered_timeout( &mut self, only_new_disruptions: bool, timeout: Option<Duration>, ) -> Result<u32, StreckenInfoError>
return the new revision after timeout even if only_new_disruptions is true but no new disruption sent
pub async fn wait_for_new_revision_filtered( &mut self, only_new_disruptions: bool, ) -> Result<u32, StreckenInfoError>
pub async fn wait_for_new_revision(&mut self) -> Result<u32, StreckenInfoError>
Auto Trait Implementations§
impl !Freeze for RevisionContext
impl !RefUnwindSafe for RevisionContext
impl Send for RevisionContext
impl Sync for RevisionContext
impl Unpin for RevisionContext
impl !UnwindSafe for RevisionContext
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