pub struct Fetch {
pub request_id: u64,
pub fetch_type: FetchType,
pub standalone_fetch_props: Option<StandaloneFetchProps>,
pub joining_fetch_props: Option<JoiningFetchProps>,
pub parameters: Vec<MessageParameter>,
}Fields§
§request_id: u64§fetch_type: FetchType§standalone_fetch_props: Option<StandaloneFetchProps>§joining_fetch_props: Option<JoiningFetchProps>§parameters: Vec<MessageParameter>Implementations§
Source§impl Fetch
impl Fetch
Sourcepub fn new_standalone(
request_id: u64,
standalone_fetch_props: StandaloneFetchProps,
parameters: Vec<MessageParameter>,
) -> Self
pub fn new_standalone( request_id: u64, standalone_fetch_props: StandaloneFetchProps, parameters: Vec<MessageParameter>, ) -> Self
Create a new standalone fetch request
Sourcepub fn new_joining(
request_id: u64,
fetch_type: FetchType,
joining_request_id: u64,
joining_start: u64,
parameters: Vec<MessageParameter>,
) -> Result<Self, &'static str>
pub fn new_joining( request_id: u64, fetch_type: FetchType, joining_request_id: u64, joining_start: u64, parameters: Vec<MessageParameter>, ) -> Result<Self, &'static str>
Create a new joining fetch request (absolute or relative)
Trait Implementations§
Source§impl ControlMessageTrait for Fetch
impl ControlMessageTrait for Fetch
fn serialize(&self) -> Result<Bytes, ParseError>
fn parse_payload(payload: &mut Bytes) -> Result<Box<Self>, ParseError>
fn get_type(&self) -> ControlMessageType
impl StructuralPartialEq for Fetch
Auto Trait Implementations§
impl !Freeze for Fetch
impl RefUnwindSafe for Fetch
impl Send for Fetch
impl Sync for Fetch
impl Unpin for Fetch
impl UnsafeUnpin for Fetch
impl UnwindSafe for Fetch
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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