pub enum Reply {
Show 13 variants
Handed {
id: u64,
documents: Vec<HandedDocument>,
},
Saved {
id: u64,
},
ContentsGranted {
id: u64,
grants: Vec<FilePortalGrant>,
},
ContentsChunk {
id: u64,
bytes: Vec<u8>,
eof: bool,
},
ContentsReleased {
id: u64,
},
Picked {
id: u64,
paths: Vec<PathBuf>,
},
Cancelled {
id: u64,
},
Nobody {
id: u64,
},
Opened {
id: u64,
},
Unclaimed {
id: u64,
},
Failed {
id: u64,
reason: String,
},
AppChosen {
id: u64,
app: ChosenApp,
},
IdentitySelected {
id: u64,
},
}Variants§
Handed
The chosen files or folders, each with the descriptor that opens it: the descriptors
travel with this frame as SCM_RIGHTS, one per document, in order.
Saved
A Save’s bytes are in the file beside the chosen one, which is now renamed over it.
ContentsGranted
Retired: an answer from before the chooser handed descriptors. Read as a choice of nothing; never written.
ContentsChunk
Retired: bytes of a contents grant. Read as a choice of nothing; never written.
ContentsReleased
Retired: the release of a contents grant. Read as a choice of nothing; never written.
Picked
Retired: an answer from before the chooser handed descriptors. Read as a choice of nothing; never written.
Cancelled
Nobody
Opened
Unclaimed
Failed
AppChosen
IdentitySelected
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reply
impl<'de> Deserialize<'de> for Reply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reply
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Forget for Reply
impl Freeze for Replywhere
*const u8 is !null: Freeze,
PhantomData<HandedDocument>: Freeze,
PhantomData<FilePortalGrant>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<String>: Freeze,
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Replywhere
RawVecInner: Send,
impl Sync for Replywhere
RawVecInner: Sync,
impl Unpin for Reply
impl UnsafeUnpin for Replywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<HandedDocument>: UnsafeUnpin,
PhantomData<FilePortalGrant>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Replywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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