pub enum IncomingSource {
Bytes(Vec<u8>),
Uri(String),
}Expand description
Where the bytes of an incoming item live.
Variants§
Bytes(Vec<u8>)
The platform handed over the bytes directly.
Uri(String)
The platform named the content; it is opened through the content resolver when it is read.
Trait Implementations§
Source§impl Clone for IncomingSource
impl Clone for IncomingSource
Source§impl Debug for IncomingSource
impl Debug for IncomingSource
impl Eq for IncomingSource
Source§impl PartialEq for IncomingSource
impl PartialEq for IncomingSource
impl StructuralPartialEq for IncomingSource
Auto Trait Implementations§
impl Freeze for IncomingSource
impl RefUnwindSafe for IncomingSource
impl Send for IncomingSource
impl Sync for IncomingSource
impl Unpin for IncomingSource
impl UnsafeUnpin for IncomingSource
impl UnwindSafe for IncomingSource
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