pub struct Push { /* private fields */ }Implementations§
Source§impl Push
impl Push
pub fn new(updates: Vec<(Vec<u8>, Oid)>, pack: Vec<u8>) -> Self
Sourcepub fn next_request(&self) -> Option<Request>
pub fn next_request(&self) -> Option<Request>
次に送るべき request。None なら完了。
Sourcepub fn on_response(&mut self, body: &[u8]) -> Result<()>
pub fn on_response(&mut self, body: &[u8]) -> Result<()>
直前の request に対する response body を渡して状態を進める。
pub fn is_done(&self) -> bool
pub fn finish(self) -> Result<PushOutcome>
Auto Trait Implementations§
impl Freeze for Push
impl RefUnwindSafe for Push
impl Send for Push
impl Sync for Push
impl Unpin for Push
impl UnsafeUnpin for Push
impl UnwindSafe for Push
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