pub struct Sliding { /* private fields */ }Implementations§
Source§impl Sliding
impl Sliding
pub fn new() -> Self
pub fn set_mode(&self, mode: SyncMode)
pub fn active(&self) -> bool
Sourcepub fn decide(&self, live: &Live)
pub fn decide(&self, live: &Live)
Asks the server what it offers (GET /versions, unstable_features).
Sourcepub fn sync(
&self,
live: &Live,
request: &OutgoingRequest,
) -> Result<Option<HttpResponseDescriptor>>
pub fn sync( &self, live: &Live, request: &OutgoingRequest, ) -> Result<Option<HttpResponseDescriptor>>
Serves a v3 sync request by sliding sync. Ok(None): not available, use v3.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Sliding
impl RefUnwindSafe for Sliding
impl Send for Sliding
impl Sync for Sliding
impl Unpin for Sliding
impl UnsafeUnpin for Sliding
impl UnwindSafe for Sliding
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