pub enum PublicationMethod {
Direct,
AtomicRename,
ConditionalReplace,
ServerSideCopy,
StreamCopy,
CopyThenDelete,
}Expand description
Concrete method used to publish a successful filesystem change.
§Examples
use qubit_fs::metadata::PublicationMethod;
assert!(matches!(PublicationMethod::Direct, PublicationMethod::Direct));Variants§
Direct
Bytes were written directly to the destination.
AtomicRename
A staging resource was atomically renamed into place.
ConditionalReplace
A conditional provider operation replaced the destination.
ServerSideCopy
A provider-native server-side copy published the destination.
StreamCopy
Bytes were streamed through the caller into the destination.
CopyThenDelete
A copy was followed by deletion of the source.
Trait Implementations§
Source§impl Clone for PublicationMethod
impl Clone for PublicationMethod
Source§fn clone(&self) -> PublicationMethod
fn clone(&self) -> PublicationMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PublicationMethod
Source§impl Debug for PublicationMethod
impl Debug for PublicationMethod
impl Eq for PublicationMethod
Source§impl PartialEq for PublicationMethod
impl PartialEq for PublicationMethod
impl StructuralPartialEq for PublicationMethod
Auto Trait Implementations§
impl Freeze for PublicationMethod
impl RefUnwindSafe for PublicationMethod
impl Send for PublicationMethod
impl Sync for PublicationMethod
impl Unpin for PublicationMethod
impl UnsafeUnpin for PublicationMethod
impl UnwindSafe for PublicationMethod
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