pub struct RemoteObject { /* private fields */ }Expand description
One URL as the probe found it: its length and validator, its blocks in the session’s cache.
Implementations§
Source§impl RemoteObject
impl RemoteObject
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Whether the object holds no byte; a probed object never is.
Sourcepub fn last_modified(&self) -> Option<&str>
pub fn last_modified(&self) -> Option<&str>
The probe’s Last-Modified, if it named one.
Sourcepub fn last_modified_ms(&self) -> Option<i64>
pub fn last_modified_ms(&self) -> Option<i64>
The probe’s Last-Modified in Unix milliseconds, when it named a date that parses.
Sourcepub fn validator(&self) -> &str
pub fn validator(&self) -> &str
The validator the object is identified by in the request: its strong entity tag, else its
Last-Modified.
Sourcepub fn reader(self: &Arc<Self>) -> RemoteReader ⓘ
pub fn reader(self: &Arc<Self>) -> RemoteReader ⓘ
A reader at offset 0 that reads through the session’s block cache.
Sourcepub fn stream(self: &Arc<Self>) -> RemoteStream ⓘ
pub fn stream(self: &Arc<Self>) -> RemoteStream ⓘ
A reader of the whole object from its first byte that keeps only what it has not yet returned, past the block cache.
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteObject
impl !UnwindSafe for RemoteObject
impl Forget for RemoteObject
impl Freeze for RemoteObjectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Shared> is !null: Freeze,
PhantomData<ArcInner<Shared>>: Freeze,
impl Move for RemoteObject
impl Send for RemoteObject
impl Sync for RemoteObject
impl Unpin for RemoteObject
impl UnsafeUnpin for RemoteObjectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more