pub struct ObjectListing { /* private fields */ }Expand description
The connection’s listing result. Native providers add entries while consuming pages so a conflict stops the request before fetching another page.
A store’s folder or prefix can also hold things coven never wrote: a person’s stray files and folders, native documents, another store’s folder, or a name close to a coven path. D10 gives each object exactly one spelling and no reader looks anywhere else, so such an entry is no object of this store and the listing skips it. What the provider itself gets wrong — an entry outside the requested scope, missing metadata, a failed or incomplete page — still fails the listing.
Implementations§
Source§impl ObjectListing
impl ObjectListing
Sourcepub fn prefix(&self) -> &ObjectPrefix
pub fn prefix(&self) -> &ObjectPrefix
Requested object namespace, beginning with the store id within the provider location.
Sourcepub fn insert(&mut self, object: StoredObject) -> Result<(), StorageError>
pub fn insert(&mut self, object: StoredObject) -> Result<(), StorageError>
Merge a native entry. HTTP pages may repeat identical entries; CloudKit’s native queries promise unique paths. Conflicting metadata always fails.
Auto Trait Implementations§
impl Freeze for ObjectListing
impl RefUnwindSafe for ObjectListing
impl Send for ObjectListing
impl Sync for ObjectListing
impl Unpin for ObjectListing
impl UnsafeUnpin for ObjectListing
impl UnwindSafe for ObjectListing
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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