pub enum PushOutcome {
Synced(String),
Queued(String),
}Expand description
Result of LocalPusher::push_text / push_image_png. The string in both
variants is the clip id known to the local store. Callers that need to
surface offline state to the user can match on Queued.
Variants§
Synced(String)
Push to relay succeeded; carries the relay-assigned clip ID.
Queued(String)
Push deferred — clip persisted locally with a local-<ULID> id and
synced=false. Will be retried on the next flush_once trigger.
Trait Implementations§
Source§impl Clone for PushOutcome
impl Clone for PushOutcome
Source§fn clone(&self) -> PushOutcome
fn clone(&self) -> PushOutcome
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 moreAuto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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