pub struct RequestSpec {
pub request_id: [u8; 16],
pub realm: [u8; 32],
pub procedure: String,
pub target: [u8; 32],
pub deadline: u64,
pub payload: Value,
pub sealed: Option<Sealed>,
pub mode: Option<StreamMode>,
pub token: Option<Vec<u8>>,
pub proofs: Vec<Vec<u8>>,
pub source_route: Option<Vec<u8>>,
pub retry_budget: Option<u64>,
}Expand description
A request as its caller gives it: sealed is the payload sealed end to
end, carried in place of payload, which is then not sent, and None for
a clear request; mode is a STREAM_OPEN’s and None for a CALL; token is None when the request carries none; proofs are the
tokens of the delegation chain the token rests on, empty for none;
source_route and retry_budget are routing fields outside the
signature.
Fields§
§request_id: [u8; 16]§realm: [u8; 32]§procedure: String§target: [u8; 32]§deadline: u64§payload: Value§sealed: Option<Sealed>§mode: Option<StreamMode>§token: Option<Vec<u8>>§proofs: Vec<Vec<u8>>§source_route: Option<Vec<u8>>§retry_budget: Option<u64>Trait Implementations§
Source§impl Clone for RequestSpec
impl Clone for RequestSpec
Source§impl Debug for RequestSpec
impl Debug for RequestSpec
Source§impl PartialEq for RequestSpec
impl PartialEq for RequestSpec
impl StructuralPartialEq for RequestSpec
Auto Trait Implementations§
impl Freeze for RequestSpec
impl RefUnwindSafe for RequestSpec
impl Send for RequestSpec
impl Sync for RequestSpec
impl Unpin for RequestSpec
impl UnsafeUnpin for RequestSpec
impl UnwindSafe for RequestSpec
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