Enum gotham_formdata::value::BytesOrString
source · pub enum BytesOrString<'a, Err> {
Bytes(ByteStream<Err>),
String(Cow<'a, str>),
}
Expand description
Either a stream of bytes or a string.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a, Err> !RefUnwindSafe for BytesOrString<'a, Err>
impl<'a, Err> Send for BytesOrString<'a, Err>
impl<'a, Err> !Sync for BytesOrString<'a, Err>
impl<'a, Err> Unpin for BytesOrString<'a, Err>
impl<'a, Err> !UnwindSafe for BytesOrString<'a, Err>
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