pub struct SliceRequest { /* private fields */ }Expand description
A slice request (5.6): the slice id asked for, the asof, the pin, the host asked, and for
a following page the key of the last member received (after).
Implementations§
Source§impl SliceRequest
impl SliceRequest
Sourcepub fn new(
slice_id: &str,
asof: Option<&str>,
) -> Result<SliceRequest, InvalidRequest>
pub fn new( slice_id: &str, asof: Option<&str>, ) -> Result<SliceRequest, InvalidRequest>
A request for the slice with id slice_id (64 lowercase hex digits) as of asof (an
instant) or now; anything else is crate::InvalidRequest.
Sourcepub fn with_pin(self, fn_hash: &str) -> Result<SliceRequest, InvalidRequest>
pub fn with_pin(self, fn_hash: &str) -> Result<SliceRequest, InvalidRequest>
Pinned to fn_hash (64 lowercase hex digits).
Sourcepub fn with_mesh(self, host: &str) -> Result<SliceRequest, InvalidRequest>
pub fn with_mesh(self, host: &str) -> Result<SliceRequest, InvalidRequest>
Naming the host asked (a DNS name): next and computed are then checked against it.
Sourcepub fn with_after(self, after: BTreeMap<String, Scalar>) -> SliceRequest
pub fn with_after(self, after: BTreeMap<String, Scalar>) -> SliceRequest
For a following page: the key of the last member received, from each open argument’s
name to its value. Other names are ignored; a cursor lacking an open argument, or whose
value has another type than the members’ key, cannot be ordered against (E_ENVELOPE
from check_slice_answer).
Trait Implementations§
Source§impl Clone for SliceRequest
impl Clone for SliceRequest
Source§impl Debug for SliceRequest
impl Debug for SliceRequest
impl Eq for SliceRequest
Source§impl Hash for SliceRequest
impl Hash for SliceRequest
Source§impl PartialEq for SliceRequest
impl PartialEq for SliceRequest
impl StructuralPartialEq for SliceRequest
Auto Trait Implementations§
impl Freeze for SliceRequest
impl RefUnwindSafe for SliceRequest
impl Send for SliceRequest
impl Sync for SliceRequest
impl Unpin for SliceRequest
impl UnsafeUnpin for SliceRequest
impl UnwindSafe for SliceRequest
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