Skip to main content

Resolved

Struct Resolved 

Source
struct Resolved {
    group_id: u64,
    subgroup_id: Option<u64>,
    object_id: u64,
    publisher_priority: u8,
    end_of_range: Option<AnyFetchEndOfRange>,
}
Expand description

A drafts-16-to-19 fetch frame’s identity once the fields its Serialization Flags left off the wire have been filled in.

The four drafts read those flags differently enough to need a resolver each, but they all end up saying the same five things, and turning that into a draft-neutral value is the same work every time. subgroup_id is None for the frames that have none at all rather than zero, which is a real Subgroup ID; see AnyFetchObject::has_subgroup_id.

Fields§

§group_id: u64§subgroup_id: Option<u64>§object_id: u64§publisher_priority: u8§end_of_range: Option<AnyFetchEndOfRange>

Implementations§

Source§

impl Resolved

Source

fn into_object( self, extension_headers: Vec<u8>, payload: Vec<u8>, ) -> AnyFetchObject

Source

fn into_meta( self, extension_headers_len: u64, payload_length: u64, wire_len: u64, ) -> AnyFetchObjectMeta

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.